对话框初始化时,可以设置.
在ONPAINT中
在ONPAINT中
解决方案 »
- 【新人求助】MFC用GDI+显示位图动画
- 无法解析的外部符号,这是什么问题啊.
- 想用Word2007的RibbonComboBox/RibbonDropDown等类,不知道要#import那个类型库或者DLL
- 如何在API程序里使用CString的AllocSysString()方法
- 语音聊天系统
- vc 读取excel 用什么方法
- SOS
- 关于对话框上绘图的问题
- 将DLG的指针保存到数组,我不会,对我来说好像有些难度,对你呢????
- 怎样将回车转换成其他的字符?
- 如何解决这个绘图问题?
- 在CPropertySheet中,为何在失去焦点后不调用void CMyPropertySheet::OnKillFocus(CWnd* pNewWnd)
http://expert.csdn.net/Topic/33113.shtm
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
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"