{
HWND hwnd; /* This is the handle for our window */
MSG messages; /* Here messages to the application are saved */
-
+
TCHAR progtitle[1000];
TCHAR resstr[100];
HMENU menu;
int i;
TCHAR tooltips[16][30];
HDC hDC;
-
+
TCHAR *c;
TCHAR sfnFilename[1000];
TCHAR sfnFiletitle[256];
LoadString(hThisInstance, IDS_WINDOWTITLE, resstr, SIZEOF(resstr));
_stprintf(progtitle, resstr, filename);
LoadString(hThisInstance, IDS_MINIATURETITLE, miniaturetitle, SIZEOF(miniaturetitle));
-
+
/* create main window */
hwnd =
CreateWindowEx(0, _T("MainWindow"), progtitle, WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, 544,
/* creating the 16 bitmap radio buttons and setting the bitmap */
- /*
- * FIXME: Unintentionally there is a line above the tool bar (hidden by y-offset).
+ /*
+ * FIXME: Unintentionally there is a line above the tool bar (hidden by y-offset).
* To prevent cropping of the buttons height has been increased from 200 to 205
*/
hToolbar =
ImageList_AddMasked(hImageList, tempBm, 0xff00ff);
DeleteObject(tempBm);
SendMessage(hToolbar, TB_BUTTONSTRUCTSIZE, sizeof(TBBUTTON), 0);
-
+
for(i = 0; i < 16; i++)
{
TBBUTTON tbbutton;
tbbutton.iBitmap = i;
SendMessage(hToolbar, TB_ADDBUTTONS, 1, (LPARAM) &tbbutton);
}
-
+
SendMessage(hToolbar, TB_CHECKBUTTON, ID_PEN, MAKELONG(TRUE, 0));
SendMessage(hToolbar, TB_SETMAXTEXTROWS, 0, 0);
SendMessage(hToolbar, TB_SETBUTTONSIZE, 0, MAKELONG(25, 25));