void CQQHideWndDlg::DoShow()
{
if(m_hideMode == HM_NONE)
return;
CRect tRect;
GetWindowRect(tRect);
INT height = tRect.Height();
INT width = tRect.Width();
INT steps = 0;
switch(m_hideMode)
{
case HM_TOP:
steps = height/HS_STEPS;
tRect.top += steps;
if(tRect.top >= -m_edgeHeight)
{ //你可以把下面一句替換上面的 ...+=|-=steps 達到取消抽屜效果
//更好的辦法是添加個BOOL值來控制,其他case同樣.
原文轉自:http://www.anti-gravitydesign.com