09-21-2010, 06:19 AM
To set extended style:
SendMessage hwnd TCM_SETEXTENDEDSTYLE exstyle exstyle
---------------------
To set style (not extended), look what is the value of the constant and add the value in dialog definition.
For example, to add TCS_FIXEDWIDTH style:
Paste TCS_FIXEDWIDTH in QM editor and look in status bar. It shows def TCS_FIXEDWIDTH 0x0400. Undo.
Now add 0x400 in dialog definition.
If was
;3 SysTabControl32 0x54000040 0x0 0 2 266 25 ""
, make it
;3 SysTabControl32 0x54000440 0x0 0 2 266 25 ""
Easier way - use SetWinStyle. But it does not work with some styles, because these styles must be set when creating the control, and cannot be changed.
SendMessage hwnd TCM_SETEXTENDEDSTYLE exstyle exstyle
---------------------
To set style (not extended), look what is the value of the constant and add the value in dialog definition.
For example, to add TCS_FIXEDWIDTH style:
Paste TCS_FIXEDWIDTH in QM editor and look in status bar. It shows def TCS_FIXEDWIDTH 0x0400. Undo.
Now add 0x400 in dialog definition.
If was
;3 SysTabControl32 0x54000040 0x0 0 2 266 25 ""
, make it
;3 SysTabControl32 0x54000440 0x0 0 2 266 25 ""
Easier way - use SetWinStyle. But it does not work with some styles, because these styles must be set when creating the control, and cannot be changed.