Window *Parent;
+ // FIXME: replace with <vector> when we get a chance.
+ static const int MAXFONTS = 5;
+ HFONT Fonts[MAXFONTS];
+ int FontCounter;
+
protected:
void SetHWND (HWND h)
{
{
return::GetDlgItem (GetHWND (), id);
};
+ bool SetDlgItemFont(int id, const TCHAR *fontname, int Pointsize,
+ int Weight = FW_NORMAL, bool Italic = false, bool Underline = false, bool Strikeout = false);
+
+ UINT IsButtonChecked (int nIDButton) const;
void PostMessage (UINT uMsg, WPARAM wParam = 0, LPARAM lParam = 0);
return false;
};
+ virtual bool OnMessageCmd (int id, HWND hwndctl, UINT code)
+ {
+ // Not processed.
+ return false;
+ };
+
// Center the window on the parent, or on screen if no parent.
void CenterWindow ();