mirror of
https://github.com/reactos/reactos.git
synced 2025-05-07 10:46:58 +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)
|
||||
};
|
||||
|
||||
|
||||
typedef struct _MSGBOXINFO
|
||||
{
|
||||
MSGBOXPARAMSW; // Wine passes this too.
|
||||
|
@ -217,7 +216,8 @@ static VOID MessageBoxTextToClipboard(HWND DialogWindow)
|
|||
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)
|
||||
{
|
||||
int i, Alert;
|
||||
|
@ -225,8 +225,10 @@ static INT_PTR CALLBACK MessageBoxProc( HWND hwnd, UINT message,
|
|||
HELPINFO hi;
|
||||
HWND owner;
|
||||
|
||||
switch(message) {
|
||||
switch (message)
|
||||
{
|
||||
case WM_INITDIALOG:
|
||||
{
|
||||
mbi = (PMSGBOXINFO)lParam;
|
||||
|
||||
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);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
case WM_COMMAND:
|
||||
switch (LOWORD(wParam))
|
||||
|
@ -316,6 +319,7 @@ static INT_PTR CALLBACK MessageBoxProc( HWND hwnd, UINT message,
|
|||
return 0;
|
||||
|
||||
case WM_HELP:
|
||||
{
|
||||
mbi = (PMSGBOXINFO)GetPropW(hwnd, L"ROS_MSGBOX");
|
||||
if (!mbi)
|
||||
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);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
case WM_CLOSE:
|
||||
{
|
||||
mbi = (PMSGBOXINFO)GetPropW(hwnd, L"ROS_MSGBOX");
|
||||
if (!mbi)
|
||||
return 0;
|
||||
|
@ -344,6 +350,7 @@ static INT_PTR CALLBACK MessageBoxProc( HWND hwnd, UINT message,
|
|||
}
|
||||
EndDialog(hwnd, IDCANCEL);
|
||||
return 1;
|
||||
}
|
||||
|
||||
case WM_TIMER:
|
||||
if (wParam == 0)
|
||||
|
@ -598,7 +605,9 @@ MessageBoxTimeoutIndirectW(
|
|||
defbtn = TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
ibtn[i]->style |= BS_PUSHBUTTON;
|
||||
}
|
||||
ibtn[i]->dwExtendedStyle = 0;
|
||||
ibtn[i]->id = Buttons.btnIdx[i];
|
||||
dest += sizeof(DLGITEMTEMPLATE);
|
||||
|
@ -766,10 +775,10 @@ MessageBoxTimeoutIndirectW(
|
|||
int
|
||||
WINAPI
|
||||
MessageBoxA(
|
||||
HWND hWnd,
|
||||
LPCSTR lpText,
|
||||
LPCSTR lpCaption,
|
||||
UINT uType)
|
||||
IN HWND hWnd,
|
||||
IN LPCSTR lpText,
|
||||
IN LPCSTR lpCaption,
|
||||
IN UINT uType)
|
||||
{
|
||||
return MessageBoxExA(hWnd, lpText, lpCaption, uType, LANG_NEUTRAL);
|
||||
}
|
||||
|
@ -781,11 +790,11 @@ MessageBoxA(
|
|||
int
|
||||
WINAPI
|
||||
MessageBoxExA(
|
||||
HWND hWnd,
|
||||
LPCSTR lpText,
|
||||
LPCSTR lpCaption,
|
||||
UINT uType,
|
||||
WORD wLanguageId)
|
||||
IN HWND hWnd,
|
||||
IN LPCSTR lpText,
|
||||
IN LPCSTR lpCaption,
|
||||
IN UINT uType,
|
||||
IN WORD wLanguageId)
|
||||
{
|
||||
MSGBOXPARAMSA msgbox;
|
||||
|
||||
|
@ -810,11 +819,11 @@ MessageBoxExA(
|
|||
int
|
||||
WINAPI
|
||||
MessageBoxExW(
|
||||
HWND hWnd,
|
||||
LPCWSTR lpText,
|
||||
LPCWSTR lpCaption,
|
||||
UINT uType,
|
||||
WORD wLanguageId)
|
||||
IN HWND hWnd,
|
||||
IN LPCWSTR lpText,
|
||||
IN LPCWSTR lpCaption,
|
||||
IN UINT uType,
|
||||
IN WORD wLanguageId)
|
||||
{
|
||||
MSGBOXPARAMSW msgbox;
|
||||
|
||||
|
@ -839,7 +848,7 @@ MessageBoxExW(
|
|||
int
|
||||
WINAPI
|
||||
MessageBoxIndirectA(
|
||||
CONST MSGBOXPARAMSA *lpMsgBoxParams)
|
||||
IN CONST MSGBOXPARAMSA* lpMsgBoxParams)
|
||||
{
|
||||
MSGBOXPARAMSW msgboxW;
|
||||
UNICODE_STRING textW, captionW, iconW;
|
||||
|
@ -918,7 +927,7 @@ MessageBoxIndirectA(
|
|||
int
|
||||
WINAPI
|
||||
MessageBoxIndirectW(
|
||||
CONST MSGBOXPARAMSW *lpMsgBoxParams)
|
||||
IN CONST MSGBOXPARAMSW* lpMsgBoxParams)
|
||||
{
|
||||
return MessageBoxTimeoutIndirectW(lpMsgBoxParams, (UINT)-1);
|
||||
}
|
||||
|
@ -930,10 +939,10 @@ MessageBoxIndirectW(
|
|||
int
|
||||
WINAPI
|
||||
MessageBoxW(
|
||||
HWND hWnd,
|
||||
LPCWSTR lpText,
|
||||
LPCWSTR lpCaption,
|
||||
UINT uType)
|
||||
IN HWND hWnd,
|
||||
IN LPCWSTR lpText,
|
||||
IN LPCWSTR lpCaption,
|
||||
IN UINT uType)
|
||||
{
|
||||
return MessageBoxExW(hWnd, lpText, lpCaption, uType, LANG_NEUTRAL);
|
||||
}
|
||||
|
@ -944,12 +953,12 @@ MessageBoxW(
|
|||
int
|
||||
WINAPI
|
||||
MessageBoxTimeoutA(
|
||||
HWND hWnd,
|
||||
LPCSTR lpText,
|
||||
LPCSTR lpCaption,
|
||||
UINT uType,
|
||||
WORD wLanguageId,
|
||||
DWORD dwTime)
|
||||
IN HWND hWnd,
|
||||
IN LPCSTR lpText,
|
||||
IN LPCSTR lpCaption,
|
||||
IN UINT uType,
|
||||
IN WORD wLanguageId,
|
||||
IN DWORD dwTime)
|
||||
{
|
||||
MSGBOXPARAMSW msgboxW;
|
||||
UNICODE_STRING textW, captionW;
|
||||
|
@ -993,12 +1002,12 @@ MessageBoxTimeoutA(
|
|||
int
|
||||
WINAPI
|
||||
MessageBoxTimeoutW(
|
||||
HWND hWnd,
|
||||
LPCWSTR lpText,
|
||||
LPCWSTR lpCaption,
|
||||
UINT uType,
|
||||
WORD wLanguageId,
|
||||
DWORD dwTime)
|
||||
IN HWND hWnd,
|
||||
IN LPCWSTR lpText,
|
||||
IN LPCWSTR lpCaption,
|
||||
IN UINT uType,
|
||||
IN WORD wLanguageId,
|
||||
IN DWORD dwTime)
|
||||
{
|
||||
MSGBOXPARAMSW msgbox;
|
||||
|
||||
|
@ -1034,7 +1043,7 @@ SoftModalMessageBox(DWORD Unknown0)
|
|||
*/
|
||||
BOOL
|
||||
WINAPI
|
||||
MessageBeep(UINT uType)
|
||||
MessageBeep(IN UINT uType)
|
||||
{
|
||||
return NtUserxMessageBeep(uType);
|
||||
}
|
||||
|
@ -1047,7 +1056,9 @@ MessageBeep(UINT uType)
|
|||
* and: http://undoc.airesoft.co.uk/user32.dll/MB_GetString.php
|
||||
* for more information.
|
||||
*/
|
||||
LPCWSTR WINAPI MB_GetString(UINT wBtn)
|
||||
LPCWSTR
|
||||
WINAPI
|
||||
MB_GetString(IN UINT wBtn)
|
||||
{
|
||||
LPCWSTR btnStr = NULL;
|
||||
|
||||
|
|
Loading…
Reference in a new issue