对话框初始化时,可以设置.
在ONPAINT中

解决方案 »

  1.   

    参见
    http://expert.csdn.net/Topic/33113.shtm
      

  2.   

    用函数shappbarmessage
    BOOL RegisterAccessBar(HWND hwndAccessBar, BOOL fRegister) 

        APPBARDATA abd; 
     
        // Specify the structure size and handle to the appbar. 
        abd.cbSize = sizeof(APPBARDATA); 
        abd.hWnd = hwndAccessBar; 
     
        if (fRegister) { 
     
            // Provide an identifier for notification messages. 
            abd.uCallbackMessage = APPBAR_CALLBACK; 
     
            // Register the appbar. 
            if (!SHAppBarMessage(ABM_NEW, &abd)) 
                return FALSE; 
            g_uSide = ABE_TOP;       // default edge 
            g_fAppRegistered = TRUE; 
        } else { 
     
            // Unregister the appbar. 
            SHAppBarMessage(ABM_REMOVE, &abd); 
            g_fAppRegistered = FALSE; 
        } 
        return TRUE; 
    }
    这是添加一个appbar的函数,你可以看看msdn
      

  3.   

    just use appBar
    but if you want show or hide it,you maybe must use timer to do it
    no good function,it only can tell window "your client rect must change"