Thread: Size of buttons in toolbar

  1. #1
    Registered User
    Join Date
    Oct 2005
    Posts
    17

    Size of buttons in toolbar

    Hello,
    i have a toolbar which contains a button which has a size of 91x15 px.
    How can i display this button propertly?
    If i try it with the following code, only a button of i think 15x15 px is displayed:

    Code:
    hwndToolbar = CreateWindowEx(0, 
    				TOOLBARCLASSNAME, 
    				"Toolbar", 
    				WS_CHILD | WS_VISIBLE | TBSTYLE_AUTOSIZE, 
    				0, 15, 
    				400, 15, 
    				hwndMain, 
    				(HMENU) ID_TOOLBAR, 
    				NULL, 
    				NULL);
    Can you guys maybe help me?
    Thank you.

  2. #2
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972
    Try sending the TB_SETBUTTONSIZE message.
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Heapsort
    By xENGINEERx in forum C Programming
    Replies: 2
    Last Post: 03-30-2008, 07:17 PM
  2. Generic heapsort
    By Sephiroth1109 in forum C Programming
    Replies: 15
    Last Post: 12-07-2007, 06:14 PM
  3. Dockable Toolbar (Like taskbar or office toolbar)
    By om3ga in forum Windows Programming
    Replies: 2
    Last Post: 11-20-2005, 03:09 AM
  4. An exercise in optimization
    By Prelude in forum Contests Board
    Replies: 10
    Last Post: 04-29-2005, 03:06 PM