just want to know how to add an spin control ( in another name, up/down control ) in the dialog box using C program (win32 / code::block / mingw compiler)
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Simplest way is by using a resource editor to design your dialog. Code::Blocks doesn’t come with one, but ResEdit is one I’ve used.
If you are editing an .rc file by hand, you’d add a line similar to the following within the dialog definition section:
If you want to add it programatically, you can do so through the
CreateWindowAPI function, e.g.where the
hwndDlgparameter is the HWND of your dialog window. A good place to call this is when you handle the WM_INITDIALOG message for the dialog.