/* init font for text tool */
ZeroMemory(&lfTextFont, sizeof(lfTextFont));
+ lfTextFont.lfHeight = 0;
lfTextFont.lfWeight = FW_NORMAL;
lfTextFont.lfCharSet = DEFAULT_CHARSET;
hfontTextFont = CreateFontIndirect(&lfTextFont);
}
/* initializing the CHOOSECOLOR structure for use with ChooseColor */
+ ZeroMemory(&choosecolor, sizeof(choosecolor));
choosecolor.lStructSize = sizeof(CHOOSECOLOR);
choosecolor.hwndOwner = hwnd;
- choosecolor.hInstance = NULL;
choosecolor.rgbResult = 0x00ffffff;
choosecolor.lpCustColors = custColors;
- choosecolor.Flags = 0;
- choosecolor.lCustData = 0;
- choosecolor.lpfnHook = NULL;
- choosecolor.lpTemplateName = NULL;
/* initializing the OPENFILENAME structure for use with GetOpenFileName and GetSaveFileName */
CopyMemory(ofnFilename, filepathname, sizeof(filepathname));