请各位指点一下做个类似于QQ窗口那样自动隐藏得窗口怎么实现?
解决方案 »
- (菜鸟)请问各位大侠,怎样学习windows编程,需要看什么书籍???
- 如果我现在只有一个hwnd窗口句柄,如何往这个窗口上添一个按钮,并定义按钮的点击命令处理函数
- 各位兄弟,有什麽方法讓listbox中圖標和文件一起顯示出來的.
- 请教一个ACE Proactor服务器(IOCP)的架构设计问题
- 高分求VS.NET 2005 下载
- HELP
- COM构造函数可以传递参数进去吗?
- 请问 在框架类头文件添加BOOL型变量,不管后面用不用, 为什么会出现 Debug ERROR?本人新来初到分不多,求大神帮忙解决!毕业设计中问题困扰好多天!谢
- 怎样修改静态框的字体大小?在先等
- 关于MM_ANISOTROPIC映射模式BitBlt贴图的问题
- 怎么得到系统光驱路径?
- ×××我写了一个MFC Dll,但是在这个Dll中不能使用datagrid,为什么?如何解决×××
CRect dlgRect;
GetWindowRect(dlgRect);
CRect desktopRect;
GetDesktopWindow()->GetWindowRect(desktopRect);
MoveWindow((desktopRect.Width() - dlgRect.Width()) / 2,
(desktopRect.Height() - dlgRect.Height()) / 2, 0, 0 );
nWidth=dlgRect.Width();
nHeight=dlgRect.Height();
dx=2;
dy=4;
dx1=2*5;
dy1=2*5;
SetTimer(1,50 , NULL); 2)
void CMyAbcDlg::OnTimer(UINT nIDEvent)
{
CRect dlgRect;
GetWindowRect(dlgRect);
CRect desktopRect;
GetDesktopWindow()->GetWindowRect(desktopRect);
if(nIDEvent == 1)
{
MoveWindow(
(-dx+desktopRect.Width() - dlgRect.Width()) / 2,
(-dy+desktopRect.Height() - dlgRect.Height()) / 2,
+dx+dlgRect.Width(),
+dy+dlgRect.Height() );
if(dlgRect.Width() >=nWidth)
dx=0; // do not over grow
if(dlgRect.Height() >=nHeight)
dy=0; // do not over grow
if((dlgRect.Width() >=nWidth) && (dlgRect.Height() >=nHeight))
KillTimer(1); //Stop the timer
CDialog::OnTimer(nIDEvent);
}
}窗口逐渐推出