Browse Source

Fixed CreateWindowExW definition.
Added missing function.

woollybah 9 years ago
parent
commit
d936cda0ff
2 changed files with 6 additions and 1 deletions
  1. 1 1
      win32.mod/user32.bmx
  2. 5 0
      win32.mod/user32.cpp

+ 1 - 1
win32.mod/user32.bmx

@@ -770,7 +770,7 @@ Function ReleaseCapture()
 Function RegisterClassA( lpWndClass:Byte Ptr )
 Function RegisterClassA( lpWndClass:Byte Ptr )
 Function RegisterClassW( lpWndClass:Byte Ptr )
 Function RegisterClassW( lpWndClass:Byte Ptr )
 Function CreateWindowExA:Byte Ptr( dwExStyle,lpClassName:Byte Ptr,lpWindowName:Byte Ptr,dwStyle,x,y,nWidth,nHeight,hWndParent,hmenu:Byte Ptr,hInstance:Byte Ptr,lpParam:Byte Ptr )
 Function CreateWindowExA:Byte Ptr( dwExStyle,lpClassName:Byte Ptr,lpWindowName:Byte Ptr,dwStyle,x,y,nWidth,nHeight,hWndParent,hmenu:Byte Ptr,hInstance:Byte Ptr,lpParam:Byte Ptr )
-Function CreateWindowExW:Byte Ptr( dwExStyle,lpClassName$w,lpWindowName$w,dwStyle,x,y,nWidth,nHeight,hWndParent,hmenu:Byte Ptr,hInstance:Byte Ptr,lpParam:Byte Ptr )
+Function CreateWindowExW:Byte Ptr( dwExStyle,lpClassName$w,lpWindowName$w,dwStyle,x,y,nWidth,nHeight,hWndParent:Byte Ptr,hmenu:Byte Ptr,hInstance:Byte Ptr,lpParam:Byte Ptr )
 Function DefWindowProcA( hWnd:Byte Ptr,MSG,wParam:Byte Ptr,lParam:Byte Ptr )
 Function DefWindowProcA( hWnd:Byte Ptr,MSG,wParam:Byte Ptr,lParam:Byte Ptr )
 Function DefWindowProcW( hWnd:Byte Ptr,MSG,wParam:Byte Ptr,lParam:Byte Ptr )
 Function DefWindowProcW( hWnd:Byte Ptr,MSG,wParam:Byte Ptr,lParam:Byte Ptr )
 Function DispatchMessageA( lpMsg:Byte Ptr )
 Function DispatchMessageA( lpMsg:Byte Ptr )

+ 5 - 0
win32.mod/user32.cpp

@@ -55,3 +55,8 @@ void bmx_win32_WNDCLASSW_SethIcon(WNDCLASSW * clas, HICON hIcon) {
 void bmx_win32_WNDCLASSW_SethbrBackground(WNDCLASSW * clas, int hbrBackground) {
 void bmx_win32_WNDCLASSW_SethbrBackground(WNDCLASSW * clas, int hbrBackground) {
 	clas->hbrBackground = (HBRUSH)hbrBackground;
 	clas->hbrBackground = (HBRUSH)hbrBackground;
 }
 }
+
+void bmx_win32_WNDCLASSW_SetcbWndExtra(WNDCLASSW * clas, int cbWndExtra) {
+	clas->cbWndExtra = cbWndExtra;
+}
+