[SHELL32]

- Formatting. No code changes.

svn path=/trunk/; revision=54845
This commit is contained in:
Rafal Harabien 2012-01-05 18:34:35 +00:00
parent 898071bb08
commit 61e7814932
4 changed files with 725 additions and 776 deletions

View file

@ -247,7 +247,7 @@ static LRESULT Control_WndProc_LButton(CPanel* panel, LPARAM lParam, BOOL up)
return 0; return 0;
} }
static LRESULT WINAPI Control_WndProc(HWND hWnd, UINT wMsg, static LRESULT WINAPI Control_WndProc(HWND hWnd, UINT wMsg,
WPARAM lParam1, LPARAM lParam2) WPARAM lParam1, LPARAM lParam2)
{ {
CPanel* panel = (CPanel*)GetWindowLongPtrW(hWnd, 0); CPanel* panel = (CPanel*)GetWindowLongPtrW(hWnd, 0);
@ -259,16 +259,15 @@ static LRESULT WINAPI Control_WndProc(HWND hWnd, UINT wMsg,
case WM_CREATE: case WM_CREATE:
Control_WndProc_Create(hWnd, (CREATESTRUCTW*)lParam2); Control_WndProc_Create(hWnd, (CREATESTRUCTW*)lParam2);
return 0; return 0;
case WM_DESTROY: case WM_DESTROY:
{ {
CPlApplet* applet = panel->first; CPlApplet *applet = panel->first;
while (applet) while (applet)
applet = Control_UnloadApplet(applet); applet = Control_UnloadApplet(applet);
PostQuitMessage(0); PostQuitMessage(0);
}; break; break;
}
case WM_PAINT: case WM_PAINT:
return Control_WndProc_Paint(panel, lParam1); return Control_WndProc_Paint(panel, lParam1);
case WM_LBUTTONUP: case WM_LBUTTONUP:
@ -324,27 +323,26 @@ static void Control_DoInterface(CPanel* panel, HWND hWnd, HINSTANCE hInst)
} }
} }
static void Control_DoWindow(CPanel* panel, HWND hWnd, HINSTANCE hInst) static void Control_DoWindow(CPanel *panel, HWND hWnd, HINSTANCE hInst)
{ {
HANDLE h; HANDLE hFind;
WIN32_FIND_DATAW fd; WIN32_FIND_DATAW wfd;
WCHAR buffer[MAX_PATH]; WCHAR wszPath[MAX_PATH];
static const WCHAR wszAllCpl[] = {'*','.','c','p','l',0}; WCHAR *Ptr = wszPath;
WCHAR *p;
GetSystemDirectoryW( buffer, MAX_PATH ); Ptr += GetSystemDirectoryW(wszPath, MAX_PATH);
p = buffer + wcslen(buffer); *Ptr++ = '\\';
*p++ = '\\'; wcscpy(Ptr, L"*.cpl");
wcscpy(p, wszAllCpl);
if ((h = FindFirstFileW(buffer, &fd)) != INVALID_HANDLE_VALUE) hFind = FindFirstFileW(wszPath, &wfd);
if (hFind != INVALID_HANDLE_VALUE)
{ {
do do
{ {
wcscpy(p, fd.cFileName); wcscpy(Ptr, wfd.cFileName);
Control_LoadApplet(hWnd, buffer, panel); Control_LoadApplet(hWnd, wszPath, panel);
} while (FindNextFileW(h, &fd)); } while (FindNextFileW(hFind, &wfd));
FindClose(h); FindClose(hFind);
} }
Control_DoInterface(panel, hWnd, hInst); Control_DoInterface(panel, hWnd, hInst);

View file

@ -36,7 +36,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(shell);
class CControlPanelEnum : class CControlPanelEnum :
public IEnumIDListImpl public IEnumIDListImpl
{ {
private:
public: public:
CControlPanelEnum(); CControlPanelEnum();
~CControlPanelEnum(); ~CControlPanelEnum();

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff