Archived

This topic is now archived and is closed to further replies.

Carradine

problem with spin controls

Recommended Posts

I have created a simple spin control in a dialog box, using the VC++ resource editor, when I test it in the editor itself, its works great, however, when i use the dialogbox() function in my actual program to show the window, it fails to load the dialog box. However, when i remove the spin control, the dialog box will load normally, which contains edit boxes, static text boxes, and various buttons. I am not using MFC, and I am wondering if anyone has expereinced this problem before. Thanks for any help

Share this post


Link to post
Share on other sites
You need to include commctrl.h and link with comctl32.lib (if you haven''t done so already.

And in your WinMain, you''ll need to call InitCommonControls() before entering the message loop (or you could call InitCommonControlsEx()).

Go look up the functions in the MSDN to get the parameter lists.

Share this post


Link to post
Share on other sites