#include <winuser.h>
#include <wingdi.h>
#include <winnls.h>
+#include <commctrl.h>
#include <shellapi.h>
#include <windowsx.h>
#include <stdlib.h>
{
MSG msg;
HACCEL hAccelTable;
+ INITCOMMONCONTROLSEX iccex;
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
}
}
+ /* Load the common controls */
+ iccex.dwSize = sizeof(INITCOMMONCONTROLSEX);
+ iccex.dwICC = ICC_STANDARD_CLASSES | ICC_WIN95_CLASSES;
+ InitCommonControlsEx(&iccex);
SelectObject(hdcOffscreen, hbmpOld);
DeleteObject (hbmpOffscreen);
if (HIWORD(wParam) == CBN_SELCHANGE)
{
HWND hCombo = GetDlgItem(hDlg,IDC_ZOOM);
- LPCTSTR currentZoomValue = TEXT("");
+ TCHAR currentZoomValue[2] = TEXT("");
/* Get index of current selection and the text of that selection */
int currentSelectionIndex = ComboBox_GetCurSel(hCombo);