Click here to Skip to main content
15,897,273 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: context menu on form without titlebar? Pin
FreewareFire27-May-05 10:33
FreewareFire27-May-05 10:33 
Generalsetting different time zone Pin
pnpfriend26-May-05 11:26
pnpfriend26-May-05 11:26 
GeneralRe: setting different time zone Pin
geo_m26-May-05 18:29
geo_m26-May-05 18:29 
GeneralRe: setting different time zone Pin
pnpfriend27-May-05 4:16
pnpfriend27-May-05 4:16 
GeneralRe: setting different time zone Pin
geo_m29-May-05 19:29
geo_m29-May-05 19:29 
GeneralUsing custom buttons in a CToolbar Pin
mckavity26-May-05 10:12
mckavity26-May-05 10:12 
GeneralRe: Using custom buttons in a CToolbar Pin
mckavity26-May-05 10:15
mckavity26-May-05 10:15 
GeneralRe: Using custom buttons in a CToolbar Pin
Shog926-May-05 12:16
sitebuilderShog926-May-05 12:16 
The toolbar control is a single window. There are (by default) no child controls created. What look like buttons are drawn (and the behavior controlled) by the toolbar control itself - no relation to pushbuttons, radiobuttons, etc.

So... You can subclss CToolBarCtrl, and do funky stuff there if you like, or use your own icons and the custom draw API to change appearance. I'm gonna caution you from the outset though - toolbars are a huge, huge annoyance to do custom work with. Don't expect to get some fancy new deviation from the norm implemented and working in an afternoon unless you either buy/borrow the code, or have gobs of experience with the control already. IMHO, it probably has the worst design and implementation of any of the common controls, and each new version of Windows (or IE) brings a new pile of ugly hacks to the mix.

You must be careful in the forest
Broken glass and rusty nails
If you're to bring back something for us
I have bullets for sale...

GeneralRe: Using custom buttons in a CToolbar Pin
mckavity27-May-05 3:35
mckavity27-May-05 3:35 
GeneralWM_SETTEXT Desperate Issue Pin
Axonn Echysttas26-May-05 9:50
Axonn Echysttas26-May-05 9:50 
GeneralRe: WM_SETTEXT Desperate Issue Pin
David Crow26-May-05 10:06
David Crow26-May-05 10:06 
GeneralRe: WM_SETTEXT Desperate Issue Pin
Axonn Echysttas26-May-05 10:50
Axonn Echysttas26-May-05 10:50 
GeneralRe: WM_SETTEXT Desperate Issue Pin
Ryan Binns26-May-05 18:41
Ryan Binns26-May-05 18:41 
GeneralRe: WM_SETTEXT Desperate Issue Pin
Axonn Echysttas26-May-05 21:40
Axonn Echysttas26-May-05 21:40 
Generalcreate a text wallpaper Pin
jet91526-May-05 9:37
jet91526-May-05 9:37 
GeneralRe: create a text wallpaper Pin
David Crow26-May-05 9:42
David Crow26-May-05 9:42 
GeneralRe: create a text wallpaper Pin
jet91526-May-05 10:34
jet91526-May-05 10:34 
GeneralRe: create a text wallpaper Pin
David Crow27-May-05 2:13
David Crow27-May-05 2:13 
GeneralTake de real part from a decimal number Pin
alvarillo26-May-05 9:20
alvarillo26-May-05 9:20 
GeneralRe: Take de real part from a decimal number Pin
Jack Puppy26-May-05 9:33
Jack Puppy26-May-05 9:33 
GeneralRe: Take de real part from a decimal number Pin
David Crow26-May-05 9:34
David Crow26-May-05 9:34 
GeneralRe: Take de real part from a decimal number Pin
knapak26-May-05 13:45
knapak26-May-05 13:45 
GeneralRe: Take de real part from a decimal number Pin
cmk27-May-05 7:51
cmk27-May-05 7:51 
GeneralA "hold down" CButton Pin
mckavity26-May-05 9:16
mckavity26-May-05 9:16 
GeneralRe: A "hold down" CButton Pin
David Crow26-May-05 9:33
David Crow26-May-05 9:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.