shell32: Fix style in autocomplete tests to more match the typical style used in the rest of Wine.
This commit is contained in:
parent
88219db8ab
commit
0fd772be99
|
@ -33,7 +33,8 @@ static HWND hMainWnd, hEdit;
|
|||
static HINSTANCE hinst;
|
||||
static int killfocus_count;
|
||||
|
||||
static BOOL test_init(void) {
|
||||
static BOOL test_init(void)
|
||||
{
|
||||
HRESULT r;
|
||||
IAutoComplete* ac;
|
||||
IUnknown *acSource;
|
||||
|
@ -64,7 +65,9 @@ static BOOL test_init(void) {
|
|||
|
||||
return TRUE;
|
||||
}
|
||||
static void test_killfocus(void) {
|
||||
|
||||
static void test_killfocus(void)
|
||||
{
|
||||
/* Test if WM_KILLFOCUS messages are handled properly by checking if
|
||||
* the parent receives an EN_KILLFOCUS message. */
|
||||
SetFocus(hEdit);
|
||||
|
@ -72,7 +75,9 @@ static void test_killfocus(void) {
|
|||
SetFocus(0);
|
||||
ok(killfocus_count == 1, "Expected one EN_KILLFOCUS message, got: %d\n", killfocus_count);
|
||||
}
|
||||
static LRESULT CALLBACK MyWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) {
|
||||
|
||||
static LRESULT CALLBACK MyWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
switch(msg) {
|
||||
case WM_CREATE:
|
||||
/* create edit control */
|
||||
|
@ -87,7 +92,9 @@ static LRESULT CALLBACK MyWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPa
|
|||
}
|
||||
return DefWindowProcA(hWnd, msg, wParam, lParam);
|
||||
}
|
||||
static void createMainWnd(void) {
|
||||
|
||||
static void createMainWnd(void)
|
||||
{
|
||||
WNDCLASSA wc;
|
||||
wc.style = CS_HREDRAW | CS_VREDRAW;
|
||||
wc.cbClsExtra = 0;
|
||||
|
@ -104,7 +111,9 @@ static void createMainWnd(void) {
|
|||
hMainWnd = CreateWindowExA(0, "MyTestWnd", "Blah", WS_OVERLAPPEDWINDOW,
|
||||
CW_USEDEFAULT, CW_USEDEFAULT, 130, 105, NULL, NULL, GetModuleHandleA(NULL), 0);
|
||||
}
|
||||
START_TEST(autocomplete) {
|
||||
|
||||
START_TEST(autocomplete)
|
||||
{
|
||||
HRESULT r;
|
||||
MSG msg;
|
||||
|
||||
|
|
Loading…
Reference in New Issue