mvp_tips/CPUID/CPUID/Leaves.cpp
void CLeaves::OnSize(UINT nType, int cx, int cy)
    {
     CPropertyPage::OnSize(nType, cx, cy);

     if(c_Platform.GetSafeHwnd() != NULL)
        { /* move it */
         CRect platform;
         c_Platform.GetWindowRect(&platform);
         ScreenToClient(&platform);

         CRect c;
         GetClientRect(&c);
         c_Platform.SetWindowPos(NULL, c.left, c.bottom - platform.Height(),
                                 0, 0,
                                 SWP_NOSIZE | SWP_NOZORDER);
        } /* move it */
    }
/****************************************************************************
*                               CLeaves::OnSize
* Inputs:
*       UINT nType: Type of resize
*       int cx: New width
*       int cy: New height
* Result: void
*       
* Effect: 
*       If the c_Platform control is specified, makes sure it stays in the
*       lower left corner of the window   
****************************************************************************/


If the c_Platform control is specified, makes sure it stays in the
lower left corner of the window
If the c_Platform control is specified makes sure it stays in the lower left corner of the window
void CLeaves::OnSize(UINT nType, int cx, int cy)
    {
     CPropertyPage::OnSize(nType, cx, cy);
     if(c_Platform.GetSafeHwnd() != NULL)
        { 
         CRect platform;
         c_Platform.GetWindowRect(&platform);
         ScreenToClient(&platform);
         CRect c;
         GetClientRect(&c);
         c_Platform.SetWindowPos(NULL, c.left, c.bottom - platform.Height(),
                                 0, 0,
                                 SWP_NOSIZE | SWP_NOZORDER);
        } 
    }
void CLeaves :: OnSize ( UINT nType , int cx , int cy ) { CPropertyPage :: OnSize ( nType , cx , cy ) ; if ( c_Platform . GetSafeHwnd ( ) != NULL ) { CRect platform ; c_Platform . GetWindowRect ( & platform ) ; ScreenToClient ( & platform ) ; CRect c ; GetClientRect ( & c ) ; c_Platform . SetWindowPos ( NULL , c . left , c . bottom - platform . Height ( ) , 0 , 0 , SWP_NOSIZE | SWP_NOZORDER ) ; } }
CLeaves::OnSize
Inputs:
UINT nType: Type of resize
int cx: New width
int cy: New height
Result: void
CLeaves :: OnSize Inputs : UINT nType : Type of resize int cx : New width int cy : New height Result : void
/* move it */ /* move it */