Skip to main content
GameDev.net gamedev.net
🔒 Locked

quick basecode question

Started by TonyFish May 24, 2002 at 11:37 AM 0 replies 200+ views
Original Post
TonyFish
TonyFish
Hi, I haven''t touched the Win API for years and have forgotten a fair bit ! I was just wondering what exactly the purpose of the following (in the NEHE OGL BaseCode 2) code was. case WM_CREATE: { CREATESTRUCT* creation = (CREATESTRUCT*)(lParam); window = (GL_Window*)(creation->lpCreateParams); SetWindowLong (hWnd, GWL_USERDATA, (LONG)(window)); } why do all this upon WM_CREATE ?? Cheers <Fish>{
<Fish>{

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.