这两个函数的用法有很多种这里慢慢的补充完整:
1.窗口样式
举例,改变框架窗口标题:
举例,改变框架窗口标题:
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
...
SetWindowLong(m_hWnd,GCL_STYLE,WS_OVERLAPPEDWINDOW);
...
}
举例,改变视图窗口光标和背景:
int CMyView::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
...
SetClassLong(m_hWnd,GCL_HBRACKGROUND,(LONG)GetStockObject(BLACK_BRUSH));
SetClassLong(m_hWnd,GCL_HCURSOR,(LONG)LoadCursor(NULL,IDC_HELP));
...
}
posted on 2010-03-23 10:49
漂漂 阅读(1213)
评论(0) 编辑 收藏 引用