Skip to content

Commit

Permalink
some
Browse files Browse the repository at this point in the history
  • Loading branch information
otya128 committed Jul 28, 2018
1 parent e41ffbd commit 61d418a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
9 changes: 8 additions & 1 deletion user/message.c
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,10 @@ LRESULT WINPROC_CallProc16To32A( winproc_callback_t callback, HWND16 hwnd, UINT1
break;
case WM_SETICON:
ret = callback(hwnd32, msg, wParam, get_icon_32(lParam), result, arg);
ERR("SI %x\n", lParam);
break;
case WM_QUERYDRAGICON:
ret = callback(hwnd32, msg, wParam, lParam, result, arg);
*result = get_icon_16(*result);
break;
default:
ret = callback( hwnd32, msg, wParam, lParam, result, arg );
Expand Down Expand Up @@ -1899,6 +1902,10 @@ LRESULT WINPROC_CallProc32ATo16( winproc_callback16_t callback, HWND hwnd, UINT
case WM_SETICON:
ret = callback(HWND_16(hwnd), msg, wParam, get_icon_16(lParam), result, arg);
break;
case WM_QUERYDRAGICON:
ret = callback(HWND_16(hwnd), msg, wParam, lParam, result, arg);
*result = get_icon_32(*result);
break;
default:
ret = callback( HWND_16(hwnd), msg, wParam, lParam, result, arg );
break;
Expand Down
15 changes: 7 additions & 8 deletions user/window.c
Original file line number Diff line number Diff line change
Expand Up @@ -2227,20 +2227,19 @@ HWND16 WINAPI CreateWindowEx16( DWORD exStyle, LPCSTR className,

if (!IS_INTRESOURCE(className))
{
//remove wide
//WCHAR bufferW[256];

//if (!MultiByteToWideChar( CP_ACP, 0, className, -1, bufferW, sizeof(bufferW)/sizeof(WCHAR) ))
// return 0;
//hwnd = create_window16( (CREATESTRUCTW *)&cs, bufferW, HINSTANCE_32(instance), FALSE );
hwnd = create_window16( (CREATESTRUCTW *)&cs, className, HINSTANCE_32(instance), FALSE );
}
else
{
if (!GlobalGetAtomNameA( LOWORD(className), buffer, sizeof(buffer) )) return 0;
cs.lpszClass = buffer;
hwnd = create_window16( (CREATESTRUCTW *)&cs, (LPCWSTR)className, HINSTANCE_32(instance), FALSE );
}
WNDCLASSA wndclass;
//reactos win32ss/user/ntuser/window.c
if (GetClassInfoExA(cs.hInstance, cs.lpszClass, &wndclass) && cs.hwndParent && (wndclass.style & CS_PARENTDC) && !(GetWindowLongA(cs.hwndParent, GWL_STYLE) & WS_CLIPCHILDREN))
{
cs.style &= ~(WS_CLIPSIBLINGS | WS_CLIPCHILDREN);
}
hwnd = create_window16((CREATESTRUCTW *)&cs, (LPCWSTR)className, HINSTANCE_32(instance), FALSE);
HWND16 hWnd16 = HWND_16(hwnd);
InitWndProc16(hwnd, hWnd16);
SetWindowHInst16(hWnd16, instance);
Expand Down

0 comments on commit 61d418a

Please sign in to comment.