Creating a Windows control without dialogs...
What''s the best way to add controls (edit boxes in particular) to a window, without using dialog boxes? The only means I can seem to find are either resource scripts for dialogs, or MFC stuff that I''d rather keep away from. Confusing. Is there another way to do this? Or do I have to go to MFC? And if so, is there a code example I could look at anywhere...?
-Arek the Absolute
-Arek the Absolute"The full quartet is pirates, ninjas, zombies, and robots. Create a game which involves all four, and you risk being blinded by the sheer level of coolness involved." - Superpig
You can use CreateWindow to create any window, including dialog controls.
---visit #directxdev on afternet <- not just for directx, despite the name
I guess I still have two more questions, then. Am I to assume for class I just type in EDIT for lpClassName, and if so, where is it defined? I always get an undefined identifier...
-Arek the Absolute
-Arek the Absolute
-Arek the Absolute"The full quartet is pirates, ninjas, zombies, and robots. Create a game which involves all four, and you risk being blinded by the sheer level of coolness involved." - Superpig
I think you need to enclose the class name in ", i.e. type "EDIT". Look up CreateWindow in MSDN if you havn''t.
Gah! I feel stupid now.
I didn''t look it up on MSDN, but that reminds me, is the MSDN site EVER different from VC++ 6.0''s help stuff? It never seems it to me, and that''s why I''ve stopped looking. Yes, I did look it up in the Help, based on that assumption.
-Arek the Absolute
I didn''t look it up on MSDN, but that reminds me, is the MSDN site EVER different from VC++ 6.0''s help stuff? It never seems it to me, and that''s why I''ve stopped looking. Yes, I did look it up in the Help, based on that assumption.
-Arek the Absolute
-Arek the Absolute"The full quartet is pirates, ninjas, zombies, and robots. Create a game which involves all four, and you risk being blinded by the sheer level of coolness involved." - Superpig
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement