CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Threaded View

  1. #3
    Join Date
    Jun 2011
    Posts
    6

    Resolved Re: Unable to add custom icon / bitmap to command bar - WinCE 5 API

    SOLVED

    So i guess the iBitmap parameter of the TBBUTTON structure is supposed to be the index of the array, not the ID number. The examples I was using (from the Boling book) put the IDs there, which may work for many buttons. Since I just want one button to act as a System menu (until I figure out how to add one in the title bar in Windows CE), I changed the value to 0 and deleted the temporary dummy buttons.

    Code:
    const TBBUTTON tbCBStdBtns[] = 
    {
    // BitmapIndex    Command			 State			  Style		 UserData String
    	{0, IDC_SQUAREDSHIPPING, TBSTATE_ENABLED, TBSTYLE_BUTTON,  0,  0},
    
    };
    Attached Images Attached Images
    Last edited by MasterWill; July 1st, 2011 at 02:17 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured