Go to the source code of this file.
|
unsigned | GetHotkeyModifierFlags () |
|
WORD | GetWindowsVersionCode () throw () |
|
bool | pfc::isAltKeyPressed () |
|
bool | pfc::isCtrlKeyPressed () |
|
bool | IsKeyPressed (unsigned vk) |
|
bool | IsPointInsideControl (const POINT &pt, HWND wnd) |
|
bool | pfc::isShiftKeyPressed () |
|
bool | IsWindowChildOf (HWND child, HWND parent) |
|
unsigned | MapDialogWidth (HWND p_dialog, unsigned p_value) |
|
void | uAddWindowExStyle (HWND p_wnd, LONG p_style) |
|
void | uAddWindowStyle (HWND p_wnd, LONG p_style) |
|
void | uRemoveWindowExStyle (HWND p_wnd, LONG p_style) |
|
void | uRemoveWindowStyle (HWND p_wnd, LONG p_style) |
|
void | uSleepSeconds (double p_time, bool p_alertable) |
|
BOOL | pfc::winFormatSystemErrorMessage (pfc::string_base &p_out, DWORD p_code) |
|
void | pfc::winPrefixPath (pfc::string_base &out, const char *p_path) |
|
void | pfc::winUnPrefixPath (pfc::string_base &out, const char *p_path) |
|
unsigned GetHotkeyModifierFlags |
( |
| ) |
|
Returns current modifier keys pressed, using win32 MOD_* flags.
Definition at line 130 of file win-objects.cpp.
bool IsKeyPressed(unsigned vk)
WORD GetWindowsVersionCode |
( |
| ) |
|
throw | ( | |
| ) | | |
Definition at line 296 of file win-objects.cpp.
297 const DWORD ver = GetVersion();
298 return (WORD)HIBYTE(LOWORD(ver)) | ((WORD)LOBYTE(LOWORD(ver)) << 8);
bool IsKeyPressed |
( |
unsigned |
vk | ) |
|
Definition at line 125 of file win-objects.cpp.
126 return (GetKeyState(vk) & 0x8000) ?
true :
false;
bool IsPointInsideControl |
( |
const POINT & |
pt, |
|
|
HWND |
wnd |
|
) |
| |
Definition at line 165 of file win-objects.cpp.
166 HWND walk = WindowFromPoint(pt);
168 if (walk == NULL)
return false;
169 if (walk == wnd)
return true;
170 if (GetWindowLong(walk,GWL_STYLE) & WS_POPUP)
return false;
171 walk = GetParent(walk);
bool IsWindowChildOf |
( |
HWND |
child, |
|
|
HWND |
parent |
|
) |
| |
Definition at line 175 of file win-objects.cpp.
177 while(walk != parent && walk != NULL && (GetWindowLong(walk,GWL_STYLE) & WS_CHILD) != 0) {
178 walk = GetParent(walk);
180 return walk == parent;
unsigned MapDialogWidth |
( |
HWND |
p_dialog, |
|
|
unsigned |
p_value |
|
) |
| |
Definition at line 118 of file win-objects.cpp.
120 temp.left = 0; temp.right = p_value; temp.top = temp.bottom = 0;
121 if (!MapDialogRect(p_dialog,&temp))
return 0;
void uAddWindowExStyle |
( |
HWND |
p_wnd, |
|
|
LONG |
p_style |
|
) |
| |
Definition at line 110 of file win-objects.cpp.
111 SetWindowLong(p_wnd,GWL_EXSTYLE, GetWindowLong(p_wnd,GWL_EXSTYLE) | p_style);
void uAddWindowStyle |
( |
HWND |
p_wnd, |
|
|
LONG |
p_style |
|
) |
| |
Definition at line 102 of file win-objects.cpp.
103 SetWindowLong(p_wnd,GWL_STYLE, GetWindowLong(p_wnd,GWL_STYLE) | p_style);
void uRemoveWindowExStyle |
( |
HWND |
p_wnd, |
|
|
LONG |
p_style |
|
) |
| |
Definition at line 114 of file win-objects.cpp.
115 SetWindowLong(p_wnd,GWL_EXSTYLE, GetWindowLong(p_wnd,GWL_EXSTYLE) & ~p_style);
void uRemoveWindowStyle |
( |
HWND |
p_wnd, |
|
|
LONG |
p_style |
|
) |
| |
Definition at line 106 of file win-objects.cpp.
107 SetWindowLong(p_wnd,GWL_STYLE, GetWindowLong(p_wnd,GWL_STYLE) & ~p_style);
void uSleepSeconds |
( |
double |
p_time, |
|
|
bool |
p_alertable |
|
) |
| |