HCURSOR LoadCursor(
HINSTANCE hInstance, // handle to application instance
LPCTSTR lpCursorName // name or resource identifier
);HCURSOR SetCursor(
HCURSOR hCursor // handle to cursor
);int ShowCursor(
BOOL bShow // cursor visibility
);
HINSTANCE hInstance, // handle to application instance
LPCTSTR lpCursorName // name or resource identifier
);HCURSOR SetCursor(
HCURSOR hCursor // handle to cursor
);int ShowCursor(
BOOL bShow // cursor visibility
);
解决方案 »
- CTreeCtrl响应鼠标左键双击事件
- GDI+ DrawImage时输出窗口输出了First-chance exception in WeatherWizard.exe (GDIPLUS.DLL):
- ADO智能指针释放的一个问题
- 请问关于创建ado实际例的问题
- 求教!两台不同子网主机如何点对点通信?
- 给定一个HDC, 一个HWND,如何判断HDC是属于HWND范围的?
- 皮肤技术,界面不错。值得学习...
- 为什么我的内存释放出错?带码见内。(急)(初学)
- Debug模式下运行正常,而Release模式下报错: LeaveCriticalSection( _locktable[locknum].lock );
- 请问visual studio中如何使用windows SDK?
- 请问VC能不能调用用其他编译器生成的DLL中的类??
- 谁能告诉我,怎样在vc中使用命令行参数?
HINSTANCE hInstance, // handle to application instance
LPCTSTR lpCursorName // name or resource identifier
);HCURSOR SetCursor(
HCURSOR hCursor // handle to cursor
);int ShowCursor(
BOOL bShow // cursor visibility
);
{
static CLSID const clsid
= { 0xd27cdb6e, 0xae6d, 0x11cf, { 0x96, 0xb8, 0x44, 0x45, 0x53, 0x54, 0x0, 0x0 } };
return clsid;
}
virtual BOOL Create(LPCTSTR lpszClassName,
LPCTSTR lpszWindowName, DWORD dwStyle,
const RECT& rect,
CWnd* pParentWnd, UINT nID,
CCreateContext* pContext = NULL)
{ return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); } BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
const RECT& rect, CWnd* pParentWnd, UINT nID,
CFile* pPersist = NULL, BOOL bStorage = FALSE,
BSTR bstrLicKey = NULL)
{ return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
pPersist, bStorage, bstrLicKey); }这个就是利用gallery生成的类一部分,第一个Create()函数提供了一个lpcsClassname参数,我使用这个函数来创建控件,提供了自己的class(使用AfxRegisterClass()),很可惜,正如我所料,没有效果(光标,画刷都没有变化),因为上面的两个Create()都使用了同一个CreateControl()函数,lpszClassName参数是被忽略的。