mirror of
https://github.com/reactos/reactos.git
synced 2025-05-08 03:07:05 +00:00
[USER32] Code formatting/indentation fixes only.
This commit is contained in:
parent
729d6e7981
commit
5e4b3c7cf0
1 changed files with 281 additions and 270 deletions
|
@ -98,7 +98,6 @@ static const MSGBTNINFO MsgBtnInfo[] =
|
||||||
DECLARE_MB_3(CANCEL, TRYAGAIN, CONTINUE)
|
DECLARE_MB_3(CANCEL, TRYAGAIN, CONTINUE)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
typedef struct _MSGBOXINFO
|
typedef struct _MSGBOXINFO
|
||||||
{
|
{
|
||||||
MSGBOXPARAMSW; // Wine passes this too.
|
MSGBOXPARAMSW; // Wine passes this too.
|
||||||
|
@ -217,7 +216,8 @@ static VOID MessageBoxTextToClipboard(HWND DialogWindow)
|
||||||
RtlFreeHeap(GetProcessHeap(), 0, pMessageBoxText);
|
RtlFreeHeap(GetProcessHeap(), 0, pMessageBoxText);
|
||||||
}
|
}
|
||||||
|
|
||||||
static INT_PTR CALLBACK MessageBoxProc( HWND hwnd, UINT message,
|
static INT_PTR CALLBACK MessageBoxProc(
|
||||||
|
HWND hwnd, UINT message,
|
||||||
WPARAM wParam, LPARAM lParam)
|
WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
int i, Alert;
|
int i, Alert;
|
||||||
|
@ -225,8 +225,10 @@ static INT_PTR CALLBACK MessageBoxProc( HWND hwnd, UINT message,
|
||||||
HELPINFO hi;
|
HELPINFO hi;
|
||||||
HWND owner;
|
HWND owner;
|
||||||
|
|
||||||
switch(message) {
|
switch (message)
|
||||||
|
{
|
||||||
case WM_INITDIALOG:
|
case WM_INITDIALOG:
|
||||||
|
{
|
||||||
mbi = (PMSGBOXINFO)lParam;
|
mbi = (PMSGBOXINFO)lParam;
|
||||||
|
|
||||||
SetWindowLongPtrW(hwnd, GWLP_USERDATA, (LONG_PTR)mbi);
|
SetWindowLongPtrW(hwnd, GWLP_USERDATA, (LONG_PTR)mbi);
|
||||||
|
@ -283,6 +285,7 @@ static INT_PTR CALLBACK MessageBoxProc( HWND hwnd, UINT message,
|
||||||
SetTimer(hwnd, 0, mbi->Timeout, NULL);
|
SetTimer(hwnd, 0, mbi->Timeout, NULL);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
case WM_COMMAND:
|
case WM_COMMAND:
|
||||||
switch (LOWORD(wParam))
|
switch (LOWORD(wParam))
|
||||||
|
@ -316,6 +319,7 @@ static INT_PTR CALLBACK MessageBoxProc( HWND hwnd, UINT message,
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
case WM_HELP:
|
case WM_HELP:
|
||||||
|
{
|
||||||
mbi = (PMSGBOXINFO)GetPropW(hwnd, L"ROS_MSGBOX");
|
mbi = (PMSGBOXINFO)GetPropW(hwnd, L"ROS_MSGBOX");
|
||||||
if (!mbi)
|
if (!mbi)
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -331,8 +335,10 @@ static INT_PTR CALLBACK MessageBoxProc( HWND hwnd, UINT message,
|
||||||
SendMessageW(GetWindow(hwnd, GW_OWNER), WM_HELP, 0, (LPARAM)&hi);
|
SendMessageW(GetWindow(hwnd, GW_OWNER), WM_HELP, 0, (LPARAM)&hi);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
case WM_CLOSE:
|
case WM_CLOSE:
|
||||||
|
{
|
||||||
mbi = (PMSGBOXINFO)GetPropW(hwnd, L"ROS_MSGBOX");
|
mbi = (PMSGBOXINFO)GetPropW(hwnd, L"ROS_MSGBOX");
|
||||||
if (!mbi)
|
if (!mbi)
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -344,6 +350,7 @@ static INT_PTR CALLBACK MessageBoxProc( HWND hwnd, UINT message,
|
||||||
}
|
}
|
||||||
EndDialog(hwnd, IDCANCEL);
|
EndDialog(hwnd, IDCANCEL);
|
||||||
return 1;
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
case WM_TIMER:
|
case WM_TIMER:
|
||||||
if (wParam == 0)
|
if (wParam == 0)
|
||||||
|
@ -598,7 +605,9 @@ MessageBoxTimeoutIndirectW(
|
||||||
defbtn = TRUE;
|
defbtn = TRUE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
ibtn[i]->style |= BS_PUSHBUTTON;
|
ibtn[i]->style |= BS_PUSHBUTTON;
|
||||||
|
}
|
||||||
ibtn[i]->dwExtendedStyle = 0;
|
ibtn[i]->dwExtendedStyle = 0;
|
||||||
ibtn[i]->id = Buttons.btnIdx[i];
|
ibtn[i]->id = Buttons.btnIdx[i];
|
||||||
dest += sizeof(DLGITEMTEMPLATE);
|
dest += sizeof(DLGITEMTEMPLATE);
|
||||||
|
@ -766,10 +775,10 @@ MessageBoxTimeoutIndirectW(
|
||||||
int
|
int
|
||||||
WINAPI
|
WINAPI
|
||||||
MessageBoxA(
|
MessageBoxA(
|
||||||
HWND hWnd,
|
IN HWND hWnd,
|
||||||
LPCSTR lpText,
|
IN LPCSTR lpText,
|
||||||
LPCSTR lpCaption,
|
IN LPCSTR lpCaption,
|
||||||
UINT uType)
|
IN UINT uType)
|
||||||
{
|
{
|
||||||
return MessageBoxExA(hWnd, lpText, lpCaption, uType, LANG_NEUTRAL);
|
return MessageBoxExA(hWnd, lpText, lpCaption, uType, LANG_NEUTRAL);
|
||||||
}
|
}
|
||||||
|
@ -781,11 +790,11 @@ MessageBoxA(
|
||||||
int
|
int
|
||||||
WINAPI
|
WINAPI
|
||||||
MessageBoxExA(
|
MessageBoxExA(
|
||||||
HWND hWnd,
|
IN HWND hWnd,
|
||||||
LPCSTR lpText,
|
IN LPCSTR lpText,
|
||||||
LPCSTR lpCaption,
|
IN LPCSTR lpCaption,
|
||||||
UINT uType,
|
IN UINT uType,
|
||||||
WORD wLanguageId)
|
IN WORD wLanguageId)
|
||||||
{
|
{
|
||||||
MSGBOXPARAMSA msgbox;
|
MSGBOXPARAMSA msgbox;
|
||||||
|
|
||||||
|
@ -810,11 +819,11 @@ MessageBoxExA(
|
||||||
int
|
int
|
||||||
WINAPI
|
WINAPI
|
||||||
MessageBoxExW(
|
MessageBoxExW(
|
||||||
HWND hWnd,
|
IN HWND hWnd,
|
||||||
LPCWSTR lpText,
|
IN LPCWSTR lpText,
|
||||||
LPCWSTR lpCaption,
|
IN LPCWSTR lpCaption,
|
||||||
UINT uType,
|
IN UINT uType,
|
||||||
WORD wLanguageId)
|
IN WORD wLanguageId)
|
||||||
{
|
{
|
||||||
MSGBOXPARAMSW msgbox;
|
MSGBOXPARAMSW msgbox;
|
||||||
|
|
||||||
|
@ -839,7 +848,7 @@ MessageBoxExW(
|
||||||
int
|
int
|
||||||
WINAPI
|
WINAPI
|
||||||
MessageBoxIndirectA(
|
MessageBoxIndirectA(
|
||||||
CONST MSGBOXPARAMSA *lpMsgBoxParams)
|
IN CONST MSGBOXPARAMSA* lpMsgBoxParams)
|
||||||
{
|
{
|
||||||
MSGBOXPARAMSW msgboxW;
|
MSGBOXPARAMSW msgboxW;
|
||||||
UNICODE_STRING textW, captionW, iconW;
|
UNICODE_STRING textW, captionW, iconW;
|
||||||
|
@ -918,7 +927,7 @@ MessageBoxIndirectA(
|
||||||
int
|
int
|
||||||
WINAPI
|
WINAPI
|
||||||
MessageBoxIndirectW(
|
MessageBoxIndirectW(
|
||||||
CONST MSGBOXPARAMSW *lpMsgBoxParams)
|
IN CONST MSGBOXPARAMSW* lpMsgBoxParams)
|
||||||
{
|
{
|
||||||
return MessageBoxTimeoutIndirectW(lpMsgBoxParams, (UINT)-1);
|
return MessageBoxTimeoutIndirectW(lpMsgBoxParams, (UINT)-1);
|
||||||
}
|
}
|
||||||
|
@ -930,10 +939,10 @@ MessageBoxIndirectW(
|
||||||
int
|
int
|
||||||
WINAPI
|
WINAPI
|
||||||
MessageBoxW(
|
MessageBoxW(
|
||||||
HWND hWnd,
|
IN HWND hWnd,
|
||||||
LPCWSTR lpText,
|
IN LPCWSTR lpText,
|
||||||
LPCWSTR lpCaption,
|
IN LPCWSTR lpCaption,
|
||||||
UINT uType)
|
IN UINT uType)
|
||||||
{
|
{
|
||||||
return MessageBoxExW(hWnd, lpText, lpCaption, uType, LANG_NEUTRAL);
|
return MessageBoxExW(hWnd, lpText, lpCaption, uType, LANG_NEUTRAL);
|
||||||
}
|
}
|
||||||
|
@ -944,12 +953,12 @@ MessageBoxW(
|
||||||
int
|
int
|
||||||
WINAPI
|
WINAPI
|
||||||
MessageBoxTimeoutA(
|
MessageBoxTimeoutA(
|
||||||
HWND hWnd,
|
IN HWND hWnd,
|
||||||
LPCSTR lpText,
|
IN LPCSTR lpText,
|
||||||
LPCSTR lpCaption,
|
IN LPCSTR lpCaption,
|
||||||
UINT uType,
|
IN UINT uType,
|
||||||
WORD wLanguageId,
|
IN WORD wLanguageId,
|
||||||
DWORD dwTime)
|
IN DWORD dwTime)
|
||||||
{
|
{
|
||||||
MSGBOXPARAMSW msgboxW;
|
MSGBOXPARAMSW msgboxW;
|
||||||
UNICODE_STRING textW, captionW;
|
UNICODE_STRING textW, captionW;
|
||||||
|
@ -993,12 +1002,12 @@ MessageBoxTimeoutA(
|
||||||
int
|
int
|
||||||
WINAPI
|
WINAPI
|
||||||
MessageBoxTimeoutW(
|
MessageBoxTimeoutW(
|
||||||
HWND hWnd,
|
IN HWND hWnd,
|
||||||
LPCWSTR lpText,
|
IN LPCWSTR lpText,
|
||||||
LPCWSTR lpCaption,
|
IN LPCWSTR lpCaption,
|
||||||
UINT uType,
|
IN UINT uType,
|
||||||
WORD wLanguageId,
|
IN WORD wLanguageId,
|
||||||
DWORD dwTime)
|
IN DWORD dwTime)
|
||||||
{
|
{
|
||||||
MSGBOXPARAMSW msgbox;
|
MSGBOXPARAMSW msgbox;
|
||||||
|
|
||||||
|
@ -1034,7 +1043,7 @@ SoftModalMessageBox(DWORD Unknown0)
|
||||||
*/
|
*/
|
||||||
BOOL
|
BOOL
|
||||||
WINAPI
|
WINAPI
|
||||||
MessageBeep(UINT uType)
|
MessageBeep(IN UINT uType)
|
||||||
{
|
{
|
||||||
return NtUserxMessageBeep(uType);
|
return NtUserxMessageBeep(uType);
|
||||||
}
|
}
|
||||||
|
@ -1047,7 +1056,9 @@ MessageBeep(UINT uType)
|
||||||
* and: http://undoc.airesoft.co.uk/user32.dll/MB_GetString.php
|
* and: http://undoc.airesoft.co.uk/user32.dll/MB_GetString.php
|
||||||
* for more information.
|
* for more information.
|
||||||
*/
|
*/
|
||||||
LPCWSTR WINAPI MB_GetString(UINT wBtn)
|
LPCWSTR
|
||||||
|
WINAPI
|
||||||
|
MB_GetString(IN UINT wBtn)
|
||||||
{
|
{
|
||||||
LPCWSTR btnStr = NULL;
|
LPCWSTR btnStr = NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue