problem with spin controls

Started by
0 comments, last by Carradine 22 years, 5 months ago
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

--------------------------Vantage: Greenlit on Steam / Independent Games Festival Submission http://www.crystaldragon.com

Advertisement
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.
==========================================In a team, you either lead, follow or GET OUT OF THE WAY.

This topic is closed to new replies.

Advertisement