How to change "x" button's position on the dialog title bar?
-
Is it possible with a class derived from CDialog? Can I do some SetMinimiseButtonPos() or SetCloseButtonPos() tricks somehow? And another question about titlebar, is it possible to center titlebar's text? Thanks in advance;)
-
Is it possible with a class derived from CDialog? Can I do some SetMinimiseButtonPos() or SetCloseButtonPos() tricks somehow? And another question about titlebar, is it possible to center titlebar's text? Thanks in advance;)
PatrykDabrowski wrote:
Is it possible with a class derived from CDialog? Can I do some SetMinimiseButtonPos() or SetCloseButtonPos() tricks somehow? And another question about titlebar, is it possible to center titlebar's text?
You will have to draw the whole title bar yourself, hide all the buttons and provide all default functionality yourself, See this article[^] mostly applications just hide the title bar and paint a new title bar on the window area itself.
If you think you can than you can, if you think you can't you are right.