Subversion Repositories Games.Chess Giants

Rev

Rev 1 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1 Rev 21
Line 144... Line 144...
144
      // convert the status bar message to a hyperlink
144
      // convert the status bar message to a hyperlink
145
      ConvertStaticToHyperlink (GetDlgItem (hWnd, WINDOW_TEXT_STATUSBAR));
145
      ConvertStaticToHyperlink (GetDlgItem (hWnd, WINDOW_TEXT_STATUSBAR));
146
 
146
 
147
      // now show the window
147
      // now show the window
148
      ShowWindow (hWnd, SW_SHOW);
148
      ShowWindow (hWnd, SW_SHOW);
-
 
149
 
-
 
150
      return (0); // as MSDN says
149
   }
151
   }
150
 
152
 
151
   // else did we click the close button on the title bar ?
153
   // else did we click the close button on the title bar ?
152
   else if (message == WM_CLOSE)
154
   else if (message == WM_CLOSE)
153
      DestroyWindow (hWnd); // destroy this window
155
      DestroyWindow (hWnd); // close the window
154
 
156
 
155
   // else are we destroying this window ?
157
   // else are we destroying this window ?
156
   else if (message == WM_DESTROY)
158
   else if (message == WM_DESTROY)
157
   {
159
   {
158
      hThisWnd = NULL; // window is closed
160
      hThisWnd = NULL; // window is closed