toolbar buttons?

This is a discussion on toolbar buttons? within the Windows Programming forums, part of the Platform Specific Boards category; i would like to make a window that has a vertical toolbar control, which has bigger buttons than usual (for ...

  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    53

    Question toolbar buttons?

    i would like to make a window that has a vertical toolbar control, which has bigger buttons than usual (for example 64x64). I tried the instructions on msdn, but it didn't work, the buttons weren't big enough so the images wouldn't fit in.

    Does anyone know a way of doing this right?

    thanks in advance.

  2. #2
    Registered User
    Join Date
    Mar 2005
    Location
    Juneda
    Posts
    287
    No code?

    Right, just setup the toolbar's buttons size via TB_SETBITMAPSIZE, and be sure that the WM_SIZE or TB_AUTOSIZE messages arrives to the toolbar control.

    Niara

  3. #3
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Niara View Post
    No code?

    Right, just setup the toolbar's buttons size via TB_SETBITMAPSIZE, and be sure that the WM_SIZE or TB_AUTOSIZE messages arrives to the toolbar control.

    Niara
    You can also send the toolbar control messages to set button size... I typically do this to create a bit of a border and spacing around the buttons... eg. With 24 x 24 icons I will set the buttons to 30 x 36.

    TB_SETBUTTONSIZE Message (Windows)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Transparent toolbar buttons
    By stickman in forum Windows Programming
    Replies: 18
    Last Post: 10-08-2006, 11:30 AM
  2. Toolbar Buttons...What am I doing wrong?
    By dcboy in forum Windows Programming
    Replies: 0
    Last Post: 04-17-2006, 09:26 PM
  3. getting toolbar buttons onto a window
    By eth0 in forum Windows Programming
    Replies: 4
    Last Post: 02-24-2006, 12:59 PM
  4. Clipart for Toolbar Buttons?
    By Davros in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 02-24-2006, 10:23 AM
  5. Toolbar Buttons
    By G'n'R in forum Windows Programming
    Replies: 2
    Last Post: 10-02-2003, 05:35 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21