{
PAINTSTRUCT ps;
RECT rt;
- HDC hdc;
GetClientRect(hWnd, &rt);
- hdc = BeginPaint(hWnd, &ps);
+ BeginPaint(hWnd, &ps);
FillRect(ps.hdc, &rt, GetSysColorBrush(COLOR_BTNFACE));
EndPaint(hWnd, &ps);
}
HEXEDIT_WM_KEYDOWN(PHEXEDIT_DATA hed, INT VkCode)
{
size_t bufsize;
- BOOL shift, control;
-
if(GetKeyState(VK_MENU) & 0x8000)
{
return FALSE;
}
- shift = GetKeyState(VK_SHIFT) & 0x8000;
- control = GetKeyState(VK_CONTROL) & 0x8000;
-
bufsize = (hed->hBuffer ? LocalSize(hed->hBuffer) : 0);
switch(VkCode)
WNDCLASSEX wcFrame;
WNDCLASSEX wcChild;
ATOM hFrameWndClass;
- ATOM hChildWndClass;
ZeroMemory(&wcFrame, sizeof(WNDCLASSEX));
wcFrame.cbSize = sizeof(WNDCLASSEX);
wcChild.hIconSm = (HICON)LoadImage(hInstance, MAKEINTRESOURCE(IDI_REGEDIT), IMAGE_ICON,
GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), LR_SHARED);
- hChildWndClass = RegisterClassEx(&wcChild); /* register child windows class */
+ RegisterClassEx(&wcChild); /* register child windows class */
RegisterHexEditorClass(hInstance);
HKEY hKey = NULL;
HKEY hNewKey = NULL;
BOOL bSuccess = FALSE;
- LONG lResult;
DWORD dwDisposition;
HTREEITEM hNewItem;
do
{
_sntprintf(szNewKey, sizeof(szNewKey) / sizeof(szNewKey[0]), szNewKeyFormat, iIndex++);
- lResult = RegCreateKeyEx(hKey, szNewKey, 0, NULL, 0, KEY_ALL_ACCESS, NULL, &hNewKey, &dwDisposition);
+ RegCreateKeyEx(hKey, szNewKey, 0, NULL, 0, KEY_ALL_ACCESS, NULL, &hNewKey, &dwDisposition);
if (hNewKey && (dwDisposition == REG_OPENED_EXISTING_KEY))
{
RegCloseKey(hNewKey);