Click to See Complete Forum and Search --> : How Can I Modify a dialog's Caption as this


YoungRoc
November 15th, 2005, 08:15 PM
hello,
as the following picture, How Can I Modify a dialog's Caption as this,it does't has max button with it:
http://www.codeguru.com/forum/attachment.php?attachmentid=13023&stc=1

davidhowe2
November 15th, 2005, 08:31 PM
I think it is a tool window...

usman999_1
November 16th, 2005, 08:34 AM
Its skinned window, I have done something quite similar to this for my application with pure Win32. Which program is it btw (the pic that you attached with your post)???? If you have any further questions, let me know...
Regards,
Usman.

kkez
November 16th, 2005, 09:25 AM
You can have a caption with the maximize button disabled, but not invisible: just create a dialog without WS_MAXIMIZEBOX:

STYLE WS_SYSMENU | WS_CAPTION | WS_MINIMIZEBOX

That's linux, isn't it?

NoHero
November 16th, 2005, 11:39 AM
hello,
as the following picture, How Can I Modify a dialog's Caption as this,it does't has max button with it:
http://www.codeguru.com/forum/attachment.php?attachmentid=13023&stc=1

Yes this is a tool window, and don't need to have a maximize button change it's caption. Just use SetWindowText() specifiy a caption for your window.

/if I understood you correctly

davidhowe2
November 17th, 2005, 02:30 AM
If you have to create a standard dialog window, not a tool window, there will be much job to do (to draw the interface and process messages), something like "ownerdraw" --- You should paint the frame buttons(minimize and close), and process mouse clicking on them(though most likely are regions).

YoungRoc
November 17th, 2005, 08:30 PM
Thanks !
yeah~,I can do it .yes it must be draw and calculate the client area by self.