-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathservice.cpp
More file actions
30 lines (29 loc) · 710 Bytes
/
Copy pathservice.cpp
File metadata and controls
30 lines (29 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#define OEMRESOURCE
#include <Windows.h>
#include "resource.h"
#include "appconst.h"
#include "globalVars.h"
#include "service.h"
void loadAppSmIcon(void)
{
mainAppIcon = (HICON)LoadImage(ghInstance, MAKEINTRESOURCE(IDI_ICON155), IMAGE_ICON, 0, 0, NULL);
}
void initWaitCursor(void)
{
SetSystemCursor(plainCursor,OCR_WAIT);
}
void resetCursor(void)
{
SystemParametersInfo(SPI_SETCURSORS,0,NULL,0);
}
//returns the calculated groupbox width based on how many elements there are
//CHECKBOXONLY
INT32 getGroupBoxWidth(INT32 numOfElements)
{
return
{
PREF_BLOCK_FIRSTITEM_OFFSET +
(PREF_BLOCK_CHKBOX_HEIGHT + PREF_BLOCK_CHKBOX_MARGIN_TOP)*numOfElements +
PREF_BLOCK_FIRSTITEM_OFFSET - 10
};
}