Click here to Skip to main content
16,010,650 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralVC++ Application Size Pin
ShahShehpori14-Oct-02 22:44
sussShahShehpori14-Oct-02 22:44 
GeneralRe: VC++ Application Size Pin
jmkhael14-Oct-02 22:54
jmkhael14-Oct-02 22:54 
QuestionHow To redirect to MS Word Pin
newin14-Oct-02 22:27
sussnewin14-Oct-02 22:27 
GeneralCComVariant to c-style string Pin
suresh_sathya14-Oct-02 20:29
suresh_sathya14-Oct-02 20:29 
GeneralRe: CComVariant to c-style string Pin
alex.barylski14-Oct-02 20:55
alex.barylski14-Oct-02 20:55 
GeneralRe: CComVariant to c-style string Pin
Paul M Watt14-Oct-02 20:58
mentorPaul M Watt14-Oct-02 20:58 
QuestionChange wnd style of a dialog?!?!? Pin
Daniel Strigl14-Oct-02 20:18
Daniel Strigl14-Oct-02 20:18 
AnswerRe: Change wnd style of a dialog?!?!? Pin
alex.barylski14-Oct-02 20:37
alex.barylski14-Oct-02 20:37 
Daniel S. wrote:
How can I change the window styles, before or after creating the dialog and display it on the screen?

I don't think you can change the dialog windows styles before creating it...but you could do it during creation using CreateIndirect() or after using SetClassLong() with GCL_STYLE as a parameter. If my memory serves me correctly and you like doing things the hard way (like me somtimes) you could prolly initialize a WNDCLASS with all the desired WS_??? styles and the call CreateWindowEx() and them somehow the following...

MSDN:


The CreateDialog function uses the CreateWindowEx function to create the dialog box. CreateDialog then sends a WM_INITDIALOG message (and a WM_SETFONT message if the template specifies the DS_SETFONT style) to the dialog box procedure. The function displays the dialog box if the template specifies the WS_VISIBLE style. Finally, CreateDialog returns the window handle to the dialog box.


Just some suggestions... Smile | :)

Cheers!

"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
AnswerRe: Change wnd style of a dialog?!?!? Pin
Paul M Watt14-Oct-02 21:02
mentorPaul M Watt14-Oct-02 21:02 
GeneralRe: Change wnd style of a dialog?!?!? Pin
adamUK15-Oct-02 1:51
adamUK15-Oct-02 1:51 
QuestionHow to set File/Dir owner (on NTFS)? Pin
Qiang.Fu14-Oct-02 18:59
Qiang.Fu14-Oct-02 18:59 
AnswerRe: How to set File/Dir owner (on NTFS)? Pin
Anonymous15-Oct-02 22:22
Anonymous15-Oct-02 22:22 
QuestionHow to DrawText on top of child window? Pin
Hiusing14-Oct-02 18:39
Hiusing14-Oct-02 18:39 
AnswerRe: How to DrawText on top of child window? Pin
alex.barylski14-Oct-02 20:49
alex.barylski14-Oct-02 20:49 
GeneralUI Thread question Pin
RobJones14-Oct-02 16:55
RobJones14-Oct-02 16:55 
GeneralKnown bug.. Pin
Anonymous15-Oct-02 4:55
Anonymous15-Oct-02 4:55 
GeneralHELP PLZ Pin
B4u14-Oct-02 16:41
B4u14-Oct-02 16:41 
Generalfind of STL Pin
IMiracle14-Oct-02 15:23
IMiracle14-Oct-02 15:23 
GeneralRe: find of STL Pin
Chris Losinger14-Oct-02 15:41
professionalChris Losinger14-Oct-02 15:41 
GeneralRe: find of STL Pin
IMiracle14-Oct-02 16:20
IMiracle14-Oct-02 16:20 
GeneralRe: find of STL Pin
Chris Losinger14-Oct-02 16:25
professionalChris Losinger14-Oct-02 16:25 
GeneralRe: find of STL Pin
IMiracle14-Oct-02 19:43
IMiracle14-Oct-02 19:43 
GeneralRe: find of STL Pin
IMiracle15-Oct-02 1:34
IMiracle15-Oct-02 1:34 
GeneralRe: find of STL Pin
Chris Losinger15-Oct-02 4:18
professionalChris Losinger15-Oct-02 4:18 
Questionretrieving locations of icons/shortcuts on desktop? Pin
Anonymous14-Oct-02 12:46
Anonymous14-Oct-02 12:46 

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.