Hi, I have recently started windows programming in C/C++, I understand most of it, but 1 thing i cant find out how to do is to put controls on the main window of the application, not in a popup dialog box...can anyone give me any tips on how to do this ? thanks in advance ?
bops
1
Posting Whiz in Training
Recommended Answers
Jump to Postduring the window's initialization, use the control's Create function, in which you specify the parent HWND, RECT containing the location and height, and the control's ID, among other things. The instance object of the control must NOT be local to a function, but global in the c++ class or program …
Jump to Postwell, if the number of controls is small, using global variables is okay. but i prefer to create them locally inside the create function and then use GetDialogItem API to get the handles of the controls when i need them. this eliminates the need of global window handles and makes …
Jump to Post.is there any way of specifying the design of the window in the resource file in the way you can design your dialog box and menus etc ?
use CFormView instead of CView and the view will look and act like a dialog box -- and you can design it …
All 10 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
bops
1
Posting Whiz in Training
bops
1
Posting Whiz in Training
WolfPack
491
Posting Virtuoso
Team Colleague
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
WolfPack
491
Posting Virtuoso
Team Colleague
bops
1
Posting Whiz in Training
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
bops
1
Posting Whiz in Training
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.