comparison src/video/windx5/SDL_dx5events.c @ 458:a8a0a4f19df7

*** empty log message ***
author Sam Lantinga <slouken@libsdl.org>
date Tue, 20 Aug 2002 04:55:37 +0000
parents a6fa62b1be09
children a888b3ae31ff
comparison
equal deleted inserted replaced
457:d0ab9718bf91 458:a8a0a4f19df7
803 #endif 803 #endif
804 SDL_RegisterApp("SDL_app", CS_BYTEALIGNCLIENT, 0); 804 SDL_RegisterApp("SDL_app", CS_BYTEALIGNCLIENT, 0);
805 if ( SDL_windowid ) { 805 if ( SDL_windowid ) {
806 SDL_Window = (HWND)strtol(SDL_windowid, NULL, 0); 806 SDL_Window = (HWND)strtol(SDL_windowid, NULL, 0);
807 807
808 /* DJM: we want all event's for the user specified 808 /* DJM: we want all event's for the user specified
809 window to be handled by SDL. 809 window to be handled by SDL.
810 */ 810 */
811 if (SDL_Window) { 811 if (SDL_Window) {
812 userWindowProc = (WNDPROC)GetWindowLong(SDL_Window, GWL_WNDPROC); 812 userWindowProc = (WNDPROC)GetWindowLong(SDL_Window, GWL_WNDPROC);
813 SetWindowLong(SDL_Window, GWL_WNDPROC, (LONG)WinMessage); 813 SetWindowLong(SDL_Window, GWL_WNDPROC, (LONG)WinMessage);
814 } 814 }
815 } else { 815 } else {
816 SDL_Window = CreateWindow(SDL_Appname, SDL_Appname, 816 SDL_Window = CreateWindow(SDL_Appname, SDL_Appname,
817 (WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_MINIMIZEBOX), 817 (WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_MINIMIZEBOX),
818 0, 0, 0, 0, NULL, NULL, SDL_Instance, NULL); 818 0, 0, 0, 0, NULL, NULL, SDL_Instance, NULL);
819 if ( SDL_Window == NULL ) { 819 if ( SDL_Window == NULL ) {