/* $Id$
*
* PROJECT: ReactOS devmgr.dll
- * FILE: lib/devmgr/devmgr.c
+ * FILE: lib/devmgr/hwpage.c
* PURPOSE: ReactOS Device Manager
* PROGRAMMER: Thomas Weidenmueller <w3seek@reactos.com>
* UPDATE HISTORY:
#define NDEBUG
#include <debug.h>
-HINSTANCE hDllInstance = NULL;
-
typedef VOID (WINAPI *PINITCOMMONCONTROLS)(VOID);
typedef enum
{
return;
}
- y += rc.bottom - rc.top + ptMargin.y;
+ y += rc.bottom - rc.top + (ptMargin.y / 2);
/* resize the IDC_LOCATION label */
hControl = GetDlgItem(hpd->hWnd,
{
return;
}
- y += rc.bottom - rc.top + ptMargin.y;
+ y += rc.bottom - rc.top + (ptMargin.y / 2);
/* measure the size of the buttons */
hButton = GetDlgItem(hpd->hWnd,
IDC_TROUBLESHOOT);
GetWindowRect(hButton,
&rcButton);
- x -= ptMargin.x + (rcButton.right - rcButton.left);
+ x -= (ptMargin.x / 2) + (rcButton.right - rcButton.left);
if (!(dwp = DeferWindowPos(dwp,
hButton,
NULL,
* REVISIONS
* 13-05-2005 first working version (Sebastian Gasiorek <zebasoftis@gmail.com>)
*
- * NOTE
- * uUnknown seems to be some kind of flag how the entries should be displayed,
- * in Win it seems to be always 0x00000001
- *
* TODO
* missing: device icon in list view, Troubleshoot button, device properties,
* status description,
1,
HWPD_LARGELIST);
}
-
-
-BOOL
-STDCALL
-DllMain(IN HINSTANCE hinstDLL,
- IN DWORD dwReason,
- IN LPVOID lpvReserved)
-{
- switch (dwReason)
- {
- case DLL_PROCESS_ATTACH:
- DisableThreadLibraryCalls(hinstDLL);
- hDllInstance = hinstDLL;
- break;
- }
-
- return TRUE;
-}
*/
#include <precomp.h>
+HINSTANCE hDllInstance = NULL;
+
static INT
LengthOfStrResource(IN HINSTANCE hInst,
IN UINT uID)
return 0;
}
+
+BOOL
+STDCALL
+DllMain(IN HINSTANCE hinstDLL,
+ IN DWORD dwReason,
+ IN LPVOID lpvReserved)
+{
+ switch (dwReason)
+ {
+ case DLL_PROCESS_ATTACH:
+ DisableThreadLibraryCalls(hinstDLL);
+ hDllInstance = hinstDLL;
+ break;
+ }
+
+ return TRUE;
+}