Delete all Trailing spaces in code.

svn path=/trunk/; revision=29688
This commit is contained in:
Daniel Reimer 2007-10-19 23:01:40 +00:00
parent dd02e006bb
commit 622c29bffb
161 changed files with 1944 additions and 1944 deletions

View file

@ -1,4 +1,4 @@
/*
/*
* Copyright 2006 Saveliy Tretiakov
*
* This program is free software; you can redistribute it and/or modify
@ -26,13 +26,13 @@ HINSTANCE hInst;
INT testnum = 0;
LRESULT CALLBACK WndProc(HWND hWnd,
UINT msg,
WPARAM wParam,
LRESULT CALLBACK WndProc(HWND hWnd,
UINT msg,
WPARAM wParam,
LPARAM lParam)
{
{
HICON hIcon;
switch (msg)
{
case WM_GETICON:
@ -43,17 +43,17 @@ LRESULT CALLBACK WndProc(HWND hWnd,
else if(wParam == ICON_BIG)
hIcon = LoadIcon(hInst, MAKEINTRESOURCE(ID_ICON2BIG));
else hIcon = (HICON)1;
if(!hIcon)
{
printf("LoadIcon() failed: %d\n", (INT)GetLastError());
break;
}
return (LRESULT)hIcon;
}
break;
case WM_DESTROY:
PostQuitMessage(0);
return 0;
@ -82,16 +82,16 @@ INT main(INT argc, CHAR **argv)
"5. WM_GETICON only\n\n");
return 0;
}
testnum = atoi(argv[1]);
if(testnum < 1 || testnum > 5)
{
printf("Unknown test %d\n", testnum);
return 1;
}
hInst = GetModuleHandle(NULL);
memset(&wcx, 0, sizeof(wcx));
wcx.cbSize = sizeof(wcx);
wcx.style = CS_HREDRAW | CS_VREDRAW;
@ -102,16 +102,16 @@ INT main(INT argc, CHAR **argv)
if(testnum<5)wcx.hIcon = LoadIcon(hInst, MAKEINTRESOURCE(ID_ICON1BIG));
if(testnum == 1 || testnum == 3)
wcx.hIconSm = LoadIcon(hInst, MAKEINTRESOURCE(ID_ICON1SM));
if(!(result = RegisterClassEx(&wcx)))
{
printf("Shit! RegisterClassEx failed: %d\n",
printf("Shit! RegisterClassEx failed: %d\n",
(int)GetLastError());
return 1;
}
hWnd = CreateWindowEx(0,
WndClass,
hWnd = CreateWindowEx(0,
WndClass,
L"DrawCaption icon test",
WS_OVERLAPPED|WS_THICKFRAME|WS_SYSMENU,
CW_USEDEFAULT,
@ -122,23 +122,23 @@ INT main(INT argc, CHAR **argv)
0,
hInst,
NULL);
if(!hWnd)
{
printf("Shit! Can't create wnd!\n");
UnregisterClass(WndClass, hInst);
return 1;
}
ShowWindow(hWnd, SW_SHOW);
UpdateWindow(hWnd);
ShowWindow(hWnd, SW_SHOW);
UpdateWindow(hWnd);
while(GetMessage(&msg, NULL, 0, 0 ))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
TranslateMessage(&msg);
DispatchMessage(&msg);
}
UnregisterClass(WndClass, hInst);
return 0;

View file

@ -1,4 +1,4 @@
/*
/*
* Copyright 2006 Saveliy Tretiakov
*
* This program is free software; you can redistribute it and/or modify
@ -34,32 +34,32 @@ INT testnum = 0;
// LPCWSTR str,
// UINT uFlags);
VOID CapTest(HWND hWnd,
HDC hDc,
LPRECT pR,
WCHAR *Text,
VOID CapTest(HWND hWnd,
HDC hDc,
LPRECT pR,
WCHAR *Text,
DWORD Flags,
WCHAR *AddonStr,
DWORD Addon)
{
WCHAR Buf[512];
lstrcpy(Buf, AddonStr);
if(lstrlen(Buf))lstrcat(Buf, L" | ");
lstrcat(Buf, Text);
DrawText( hDc, Buf, lstrlen(Buf), pR, DT_LEFT );
DrawText( hDc, Buf, lstrlen(Buf), pR, DT_LEFT );
pR->top+=20;
pR->bottom+=20;
pR->bottom+=20;
if(!DrawCaption(hWnd, hDc, pR, Flags | Addon))
{
printf("PAINT: DrawCaption failed: %d\n", (int)GetLastError());
}
pR->top+=30;
pR->bottom+=30;
pR->bottom+=30;
}
VOID DrawCaptionTest(HWND hWnd, HDC hDc, WCHAR *AddonStr, DWORD Addon)
@ -71,52 +71,52 @@ VOID DrawCaptionTest(HWND hWnd, HDC hDc, WCHAR *AddonStr, DWORD Addon)
Rect.right-=10;
Rect.top = 10;
CapTest(hWnd, hDc, &Rect, L"DC_TEXT:", DC_TEXT, AddonStr, Addon);
CapTest(hWnd, hDc, &Rect,
L"DC_TEXT | DC_ACTIVE:",
DC_TEXT | DC_ACTIVE,
AddonStr, Addon);
CapTest(hWnd, hDc, &Rect,
L"DC_TEXT | DC_ICON:" ,
DC_TEXT | DC_ICON,
AddonStr, Addon);
CapTest(hWnd, hDc, &Rect,
L"DC_TEXT | DC_ACTIVE | DC_ICON:" ,
DC_TEXT | DC_ACTIVE | DC_ICON,
AddonStr, Addon);
CapTest(hWnd, hDc, &Rect, L"DC_TEXT:", DC_TEXT, AddonStr, Addon);
CapTest(hWnd, hDc, &Rect,
L"DC_TEXT | DC_INBUTTON:" ,
DC_TEXT | DC_INBUTTON,
CapTest(hWnd, hDc, &Rect,
L"DC_TEXT | DC_ACTIVE:",
DC_TEXT | DC_ACTIVE,
AddonStr, Addon);
CapTest(hWnd, hDc, &Rect,
L"DC_TEXT | DC_ACTIVE | DC_INBUTTON:" ,
DC_TEXT | DC_ACTIVE | DC_INBUTTON,
AddonStr, Addon);
CapTest(hWnd, hDc, &Rect,
L"DC_TEXT | DC_ICON | DC_INBUTTON:" ,
DC_TEXT | DC_ICON | DC_INBUTTON,
CapTest(hWnd, hDc, &Rect,
L"DC_TEXT | DC_ICON:" ,
DC_TEXT | DC_ICON,
AddonStr, Addon);
CapTest(hWnd, hDc, &Rect,
CapTest(hWnd, hDc, &Rect,
L"DC_TEXT | DC_ACTIVE | DC_ICON:" ,
DC_TEXT | DC_ACTIVE | DC_ICON,
AddonStr, Addon);
CapTest(hWnd, hDc, &Rect,
L"DC_TEXT | DC_INBUTTON:" ,
DC_TEXT | DC_INBUTTON,
AddonStr, Addon);
CapTest(hWnd, hDc, &Rect,
L"DC_TEXT | DC_ACTIVE | DC_INBUTTON:" ,
DC_TEXT | DC_ACTIVE | DC_INBUTTON,
AddonStr, Addon);
CapTest(hWnd, hDc, &Rect,
L"DC_TEXT | DC_ICON | DC_INBUTTON:" ,
DC_TEXT | DC_ICON | DC_INBUTTON,
AddonStr, Addon);
CapTest(hWnd, hDc, &Rect,
L"DC_TEXT | DC_ACTIVE | DC_ICON | DC_INBUTTON:" ,
DC_TEXT | DC_ACTIVE | DC_ICON | DC_INBUTTON,
AddonStr, Addon);
DC_TEXT | DC_ACTIVE | DC_ICON | DC_INBUTTON,
AddonStr, Addon);
}
LRESULT CALLBACK CaptWndProc(HWND hWnd,
UINT msg,
WPARAM wParam,
LRESULT CALLBACK CaptWndProc(HWND hWnd,
UINT msg,
WPARAM wParam,
LPARAM lParam)
{
{
switch (msg)
{
@ -124,10 +124,10 @@ LRESULT CALLBACK CaptWndProc(HWND hWnd,
{
HDC hDc;
PAINTSTRUCT Ps;
hDc = BeginPaint(hWnd, &Ps);
SetBkMode( hDc, TRANSPARENT );
switch(testnum)
{
case 1:
@ -143,29 +143,29 @@ LRESULT CALLBACK CaptWndProc(HWND hWnd,
DrawCaptionTest(hWnd, hDc, L"DC_BUTTONS", DC_BUTTONS);
break;
case 5:
DrawCaptionTest(hWnd, hDc,
L"DC_GRADIENT | DC_SMALLCAP",
DrawCaptionTest(hWnd, hDc,
L"DC_GRADIENT | DC_SMALLCAP",
DC_GRADIENT | DC_SMALLCAP);
break;
case 6:
DrawCaptionTest(hWnd, hDc,
L"DC_GRADIENT | DC_BUTTONS",
DrawCaptionTest(hWnd, hDc,
L"DC_GRADIENT | DC_BUTTONS",
DC_GRADIENT | DC_BUTTONS);
break;
case 7:
DrawCaptionTest(hWnd, hDc,
L"DC_BUTTONS | DC_SMALLCAP",
case 7:
DrawCaptionTest(hWnd, hDc,
L"DC_BUTTONS | DC_SMALLCAP",
DC_BUTTONS | DC_SMALLCAP);
break;
case 8:
DrawCaptionTest(hWnd, hDc,
L"DC_BUTTONS | DC_SMALLCAP | DC_GRADIENT",
DrawCaptionTest(hWnd, hDc,
L"DC_BUTTONS | DC_SMALLCAP | DC_GRADIENT",
DC_BUTTONS | DC_SMALLCAP | DC_GRADIENT);
break;
}
EndPaint(hWnd, &Ps);
return 0;
}
@ -188,7 +188,7 @@ INT main(INT argc, CHAR **argv)
UINT result;
HBRUSH hBr;
//HMODULE hLib;
if(argc<2)
{
printf("DrawCaption testcode.\n");
@ -204,37 +204,37 @@ INT main(INT argc, CHAR **argv)
"8. DrawCaption test + DC_BUTTONS | DC_SMALLCAP | DC_GRADIENT\n\n");
return 0;
}
testnum = atoi(argv[1]);
if(testnum < 1 || testnum > 8)
{
printf("Unknown test %d\n", testnum);
return 1;
}
hInst = GetModuleHandle(NULL);
//hLib = LoadLibrary(L"user32");
//if(!hLib)
//{
// printf("Shit! Can't load user32.dll\n");
// return 1;
//}
//DrawCaptionTemp = GetProcAddress(hLib, "DrawCaptionTempW");
//if(!DrawCaptionTemp)
//{
// printf("Shit! Can't get DrawCaptionTemp address\n");
// return 1;
//}
hBr = CreateSolidBrush(RGB(255, 255, 255));
if(!hBr)
{
printf("Shit! Can't create brush.");
return 1;
}
memset(&wcx, 0, sizeof(wcx));
wcx.cbSize = sizeof(wcx);
wcx.style = CS_HREDRAW | CS_VREDRAW;
@ -243,17 +243,17 @@ INT main(INT argc, CHAR **argv)
wcx.hbrBackground = hBr;
wcx.lpszClassName = CaptWndClass;
if(argc > 2) wcx.hIconSm = LoadIcon(hInst, MAKEINTRESOURCE(ID_ICON1SM));
if(!(result = RegisterClassEx(&wcx)))
{
printf("Shit! RegisterClassEx failed: %d\n",
printf("Shit! RegisterClassEx failed: %d\n",
(int)GetLastError());
DeleteObject(hBr);
return 1;
}
hWnd = CreateWindowEx(0,
CaptWndClass,
hWnd = CreateWindowEx(0,
CaptWndClass,
L"DrawCaption test",
WS_OVERLAPPED|WS_THICKFRAME|WS_SYSMENU,
CW_USEDEFAULT,
@ -264,7 +264,7 @@ INT main(INT argc, CHAR **argv)
0,
hInst,
NULL);
if(!hWnd)
{
printf("Shit! Can't create wnd!\n");
@ -272,16 +272,16 @@ INT main(INT argc, CHAR **argv)
DeleteObject(hBr);
return 1;
}
ShowWindow(hWnd, SW_SHOW);
UpdateWindow(hWnd);
ShowWindow(hWnd, SW_SHOW);
UpdateWindow(hWnd);
while(GetMessage(&msg, NULL, 0, 0 ))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
TranslateMessage(&msg);
DispatchMessage(&msg);
}
DeleteObject(hBr);
UnregisterClass(CaptWndClass, hInst);

View file

@ -1,5 +1,5 @@
/*
* PROJECT: ReactOS
* PROJECT: ReactOS
* LICENSE: GPL - See COPYING in the top level directory
* FILE: base/applications/testset/user32/kbdlayout/kbdlayout.c
* PURPOSE: Keyboard layout testapp
@ -28,10 +28,10 @@ typedef struct {
DWORD WINAPI ThreadProc(LPVOID lpParam)
{
DialogBoxParam(hInst,
DialogBoxParam(hInst,
MAKEINTRESOURCE(IDD_MAINDIALOG),
NULL,
(DLGPROC)MainDialogProc,
NULL,
(DLGPROC)MainDialogProc,
(LPARAM)NULL);
return 0;
@ -91,8 +91,8 @@ void UpdateData(HWND hDlg)
for(i = 0; i < n; i++)
{
swprintf(buf, L"%x", klList[i] );
j = SendMessage(hList, LB_ADDSTRING, 0, (LPARAM) buf);
SendMessage(hList, LB_SETITEMDATA, j, (LPARAM) klList[i]);
j = SendMessage(hList, LB_ADDSTRING, 0, (LPARAM) buf);
SendMessage(hList, LB_SETITEMDATA, j, (LPARAM) klList[i]);
if(klList[i] == hKl) SendMessage(hList, LB_SETCURSEL, j, 0);
}
@ -129,15 +129,15 @@ LRESULT CALLBACK WndSubclassProc( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lP
FormatMsg(L"%s: WM_INPUTLANGCHANGE lParam=%x wParam=%x\n", data->WndName, lParam, wParam);
UpdateData(hMainDlg);
//Pass message to defwindowproc
}
}
else if(uMsg == WM_INPUTLANGCHANGEREQUEST)
{
FormatMsg(L"%s: WM_INPUTLANGCHANGEREQUEST lParam=%x wParam=%x\n", data->WndName, lParam, wParam);
UpdateData(hMainDlg);
//Pass message to defwindowproc
}
return ( CallWindowProc( data->OrigProc, hwnd, uMsg, wParam, lParam) );
return ( CallWindowProc( data->OrigProc, hwnd, uMsg, wParam, lParam) );
}
void SubclassWnd(HWND hWnd, WCHAR* Name)
@ -221,7 +221,7 @@ HKL GetActivateHandle(HWND hDlg)
if(IsDlgButtonChecked(hDlg, IDC_FROMLIST))
return GetSelectedLayout(hDlg);
else if(IsDlgButtonChecked(hDlg, IDC_HKL_NEXT))
else if(IsDlgButtonChecked(hDlg, IDC_HKL_NEXT))
return (HKL)HKL_NEXT;
return (HKL)HKL_PREV;
@ -284,10 +284,10 @@ LRESULT MainDialogProc(HWND hDlg,
{
Sleep(GetDelayMilliseconds(hDlg));
if(!(hKl = ActivateKeyboardLayout(hKl, GetActivateFlags(hDlg))))
FormatBox(hDlg, MB_ICONERROR, L"Error",
FormatBox(hDlg, MB_ICONERROR, L"Error",
L"ActivateKeyboardLayout() failed. %d", GetLastError());
else UpdateData(hDlg);
//FormatBox(hDlg, 0, L"Activated", L"Prev - %x, err - %d.", hKl,
//FormatBox(hDlg, 0, L"Activated", L"Prev - %x, err - %d.", hKl,
// GetLastError());
}
else MessageBox(hDlg, L"No item selected", L"Error", MB_ICONERROR);
@ -300,11 +300,11 @@ LRESULT MainDialogProc(HWND hDlg,
{
Sleep(GetDelayMilliseconds(hDlg));
if(!UnloadKeyboardLayout(hKl))
FormatBox(hDlg, MB_ICONERROR, L"Error",
L"UnloadKeyboardLayout() failed. %d",
FormatBox(hDlg, MB_ICONERROR, L"Error",
L"UnloadKeyboardLayout() failed. %d",
GetLastError());
else UpdateData(hDlg);
}
}
else MessageBox(hDlg, L"No item selected", L"Error", MB_ICONERROR);
break;
}
@ -315,7 +315,7 @@ LRESULT MainDialogProc(HWND hDlg,
GetWindowText(GetDlgItem(hDlg, IDC_KLID), buf, sizeof(buf));
Sleep(GetDelayMilliseconds(hDlg));
if(!LoadKeyboardLayout(buf, GetLoadFlags(hDlg)))
FormatBox(hDlg, MB_ICONERROR, L"Error",
FormatBox(hDlg, MB_ICONERROR, L"Error",
L"LoadKeyboardLayout() failed. %d",
GetLastError());
else UpdateData(hDlg);
@ -332,7 +332,7 @@ LRESULT MainDialogProc(HWND hDlg,
{
if(!CreateThread(NULL, 0, ThreadProc, NULL, 0, NULL))
{
FormatBox(hDlg, MB_ICONERROR, L"Error!",
FormatBox(hDlg, MB_ICONERROR, L"Error!",
L"Can not create thread (%d).", GetLastError());
}
}

View file

@ -33,36 +33,36 @@ FONT 8, "MS Sans Serif"
BEGIN
PUSHBUTTON "Close",ID_CANCEL,215,172,105,14
EDITTEXT IDC_EDIT1,7,140,199,47,ES_MULTILINE | ES_AUTOHSCROLL
LISTBOX IDC_LIST,124,60,84,46,LBS_NOINTEGRALHEIGHT | WS_VSCROLL |
LISTBOX IDC_LIST,124,60,84,46,LBS_NOINTEGRALHEIGHT | WS_VSCROLL |
WS_TABSTOP
LTEXT "Loaded layouts",IDC_STATIC,124,50,49,8
LTEXT "Active:",IDC_ACTIVE,7,127,114,10,SS_SUNKEN
PUSHBUTTON "Unload",IDC_UNLOAD,124,109,41,14
PUSHBUTTON "Activate",IDC_ACTIVATE,166,109,41,14
GROUPBOX "Activate Flags",IDC_STATIC,215,7,103,67
CONTROL "KLF_REORDER",IDC_KLF_REORDER,"Button",BS_AUTOCHECKBOX |
CONTROL "KLF_REORDER",IDC_KLF_REORDER,"Button",BS_AUTOCHECKBOX |
WS_TABSTOP,221,22,69,10
CONTROL "KLF_RESET",IDC_KLF_RESET,"Button",BS_AUTOCHECKBOX |
CONTROL "KLF_RESET",IDC_KLF_RESET,"Button",BS_AUTOCHECKBOX |
WS_TABSTOP,221,34,66,12
CONTROL "KLF_SETFORPROCESS",IDC_KLF_SETFORPROCESS,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,221,48,95,10
CONTROL "KLF_SHIFTLOCK",IDC_KLF_SHIFTLOCK,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,221,60,72,10
GROUPBOX "Activate layout",IDC_STATIC,216,77,103,50
CONTROL "From list",IDC_FROMLIST,"Button",BS_AUTORADIOBUTTON |
CONTROL "From list",IDC_FROMLIST,"Button",BS_AUTORADIOBUTTON |
WS_GROUP,220,90,41,10
CONTROL "HKL_NEXT",IDC_HKL_NEXT,"Button",BS_AUTORADIOBUTTON,220,
101,53,10
CONTROL "HKL_PREV",IDC_HKL_PREV,"Button",BS_AUTORADIOBUTTON,220,
112,53,10
GROUPBOX "Load layout",IDC_STATIC,7,7,113,118
CONTROL "KLF_ACTIVATE",IDL_KLF_ACTIVATE,"Button",BS_AUTOCHECKBOX |
CONTROL "KLF_ACTIVATE",IDL_KLF_ACTIVATE,"Button",BS_AUTOCHECKBOX |
WS_TABSTOP,14,44,67,10
CONTROL "KLF_NOTELLSHELL",IDL_KLF_NOTELLSHELL,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,14,57,83,10
LTEXT "pwszKLID:",IDC_STATIC,14,17,35,8
EDITTEXT IDC_KLID,14,27,54,14,ES_AUTOHSCROLL
CONTROL "KLF_REORDER",IDL_KLF_REORDER,"Button",BS_AUTOCHECKBOX |
CONTROL "KLF_REORDER",IDL_KLF_REORDER,"Button",BS_AUTOCHECKBOX |
WS_TABSTOP,14,71,69,10
CONTROL "KLF_REPLACELANG",IDL_KLF_REPLACELANG,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,14,84,85,10
@ -87,7 +87,7 @@ END
//
#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO DISCARDABLE
GUIDELINES DESIGNINFO DISCARDABLE
BEGIN
IDD_MAINDIALOG, DIALOG
BEGIN
@ -106,18 +106,18 @@ END
// TEXTINCLUDE
//
1 TEXTINCLUDE DISCARDABLE
1 TEXTINCLUDE DISCARDABLE
BEGIN
"resource.h\0"
END
2 TEXTINCLUDE DISCARDABLE
2 TEXTINCLUDE DISCARDABLE
BEGIN
"#include ""afxres.h""\r\n"
"\0"
END
3 TEXTINCLUDE DISCARDABLE
3 TEXTINCLUDE DISCARDABLE
BEGIN
"\r\n"
"\0"

View file

@ -34,7 +34,7 @@
#define IDC_NEWTHREAD 1050
// Next default values for new objects
//
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NO_MFC 1

View file

@ -1,4 +1,4 @@
/*
/*
* Copyright 2006 Saveliy Tretiakov
*
* This program is free software; you can redistribute it and/or modify
@ -15,10 +15,10 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* This testapp demonstrates WS_SYSMENU + WS_EX_DLGMODALFRAME
* behavior and shows that DrawCaption does care
* about WS_EX_DLGMODALFRAME and WS_EX_TOOLWINDOW
/* This testapp demonstrates WS_SYSMENU + WS_EX_DLGMODALFRAME
* behavior and shows that DrawCaption does care
* about WS_EX_DLGMODALFRAME and WS_EX_TOOLWINDOW
*/
#include "windows.h"
@ -27,37 +27,37 @@
WCHAR WndClass[] = L"sysicon_class";
LRESULT CALLBACK WndProc(HWND hWnd,
UINT msg,
WPARAM wParam,
LRESULT CALLBACK WndProc(HWND hWnd,
UINT msg,
WPARAM wParam,
LPARAM lParam)
{
{
switch (msg)
{
case WM_PAINT:
{
HDC hDc;
PAINTSTRUCT Ps;
RECT Rect;
GetClientRect(hWnd, &Rect);
Rect.left = 10;
Rect.top = 10;
Rect.right-=10;
Rect.bottom = 25;
hDc = BeginPaint(hWnd, &Ps);
SetBkMode( hDc, TRANSPARENT );
DrawCaption(hWnd, hDc, &Rect, DC_GRADIENT | DC_ACTIVE | DC_TEXT | DC_ICON);
EndPaint(hWnd, &Ps);
return 0;
}
case WM_DESTROY:
PostQuitMessage(0);
return 0;
@ -75,22 +75,22 @@ int APIENTRY WinMain(HINSTANCE hInst,
MSG msg;
WNDCLASSEX wcx;
UINT result;
memset(&wcx, 0, sizeof(wcx));
wcx.cbSize = sizeof(wcx);
wcx.lpfnWndProc = (WNDPROC) WndProc;
wcx.hInstance = hInst;
wcx.hbrBackground = (HBRUSH)COLOR_WINDOW;
wcx.lpszClassName = WndClass;
if(!(result = RegisterClassEx(&wcx)))
{
return 1;
}
/* WS_EX_DLGMODALFRAME */
hWnd1 = CreateWindowEx(WS_EX_DLGMODALFRAME,
WndClass,
hWnd1 = CreateWindowEx(WS_EX_DLGMODALFRAME,
WndClass,
L"WS_SYSMENU | WS_EX_DLGMODALFRAME",
WS_CAPTION | WS_SYSMENU ,
CW_USEDEFAULT,
@ -101,17 +101,17 @@ int APIENTRY WinMain(HINSTANCE hInst,
0,
hInst,
NULL);
if(!hWnd1)
{
return 1;
}
ShowWindow(hWnd1, SW_SHOW);
UpdateWindow(hWnd1);
ShowWindow(hWnd1, SW_SHOW);
UpdateWindow(hWnd1);
hWnd2 = CreateWindowEx(WS_EX_TOOLWINDOW,
WndClass,
WndClass,
L"WS_SYSMENU | WS_EX_TOOLWINDOW",
WS_CAPTION | WS_SYSMENU ,
CW_USEDEFAULT,
@ -122,17 +122,17 @@ int APIENTRY WinMain(HINSTANCE hInst,
0,
hInst,
NULL);
if(!hWnd2)
{
return 1;
}
ShowWindow(hWnd2, SW_SHOW);
UpdateWindow(hWnd2);
ShowWindow(hWnd2, SW_SHOW);
UpdateWindow(hWnd2);
hWnd3 = CreateWindowEx(0,
WndClass,
WndClass,
L"WS_SYSMENU ",
WS_CAPTION | WS_SYSMENU ,
CW_USEDEFAULT,
@ -143,20 +143,20 @@ int APIENTRY WinMain(HINSTANCE hInst,
0,
hInst,
NULL);
if(!hWnd3)
{
return 1;
}
ShowWindow(hWnd3, SW_SHOW);
UpdateWindow(hWnd3);
ShowWindow(hWnd3, SW_SHOW);
UpdateWindow(hWnd3);
while(GetMessage(&msg, NULL, 0, 0 ))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
TranslateMessage(&msg);
DispatchMessage(&msg);
}
UnregisterClass(WndClass, hInst);
return 0;