Jump to content
  • Advertisement
Sign in to follow this  
Fixxer

resource trouble

This topic is 4440 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I cannot get my icon and cursor to work! Here is where I am setting the icons and cursor
	winclass.cbSize = sizeof(WNDCLASSEX);
	winclass.style = CS_DBLCLKS | CS_OWNDC | CS_HREDRAW | CS_VREDRAW;
	winclass.cbClsExtra = 0;
	winclass.lpfnWndProc = WindowProc;
	winclass.cbClsExtra = 0;
	winclass.cbWndExtra = 0;
	winclass.hInstance = hinstance;
	winclass.hIcon = LoadIcon(hinstance , MAKEINTRESOURCE(ID_ICON1));
	winclass.hCursor = LoadCursor(hinstance, MAKEINTRESOURCE(ID_CURSOR_CROSS));
	winclass.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH);
	winclass.lpszMenuName = NULL;
	winclass.lpszClassName = WINDOW_CLASS_NAME;
	winclass.hIconSm = LoadIcon(hinstance, MAKEINTRESOURCE(ID_ICON1));

Here is the header file with the resouce defines
#define ID_ICON1			101
#define ID_CURSOR_CROSS		201

and here is my resource file:
ID_ICON1 ICON icon.ico

ID_CURSOR_CROSS CURSOR cursor.cur

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!