]> cygwin.com Git - cygwin-apps/setup.git/blobdiff - window.h
2001-01-04 Gary R. Van Sickle <g.r.vansickle@worldnet.att.net>
[cygwin-apps/setup.git] / window.h
index 2cb405b01119d960e731374740713e335709e668..03702490dca41f776b80cc1f7c65258fa7a4a475 100644 (file)
--- a/window.h
+++ b/window.h
@@ -39,6 +39,11 @@ class Window
 
   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)
   {
@@ -79,6 +84,10 @@ public:
   {
     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);
 
@@ -87,6 +96,12 @@ public:
     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 ();
 
This page took 0.025422 seconds and 5 git commands to generate.