Advertisement

quick basecode question

Started by May 24, 2002 11:37 AM
-1 comments, last by TonyFish 22 years, 9 months ago
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>{

This topic is closed to new replies.

Advertisement