这是MFC中创建button的源码
BOOL CButton::Create(LPCTSTR lpszCaption, DWORD dwStyle,
const RECT& rect, CWnd* pParentWnd, UINT nID)
{
CWnd* pWnd = this;
return pWnd->Create(_T("BUTTON"), lpszCaption, dwStyle, rect, pParentWnd, nID);
}现在的问题是,我想看"BUTTON"这个WNDCLASSEX的具体内容是什么,在哪里可以看到?
现在说说问题的来源,是因为我在做skin的时候,对dialog进行mask后贴图,图可以被mask掉,也就是说,被mask掉的地方透明,但对button进行mask的时候,按钮的形状按照mask设定的正常,但贴图的时候却是按照矩形贴图,我怀疑CDialog和CButton的Class Styles部分关于DC的设顶是不同的,所以希望看一看
BOOL CButton::Create(LPCTSTR lpszCaption, DWORD dwStyle,
const RECT& rect, CWnd* pParentWnd, UINT nID)
{
CWnd* pWnd = this;
return pWnd->Create(_T("BUTTON"), lpszCaption, dwStyle, rect, pParentWnd, nID);
}现在的问题是,我想看"BUTTON"这个WNDCLASSEX的具体内容是什么,在哪里可以看到?
现在说说问题的来源,是因为我在做skin的时候,对dialog进行mask后贴图,图可以被mask掉,也就是说,被mask掉的地方透明,但对button进行mask的时候,按钮的形状按照mask设定的正常,但贴图的时候却是按照矩形贴图,我怀疑CDialog和CButton的Class Styles部分关于DC的设顶是不同的,所以希望看一看
解决方案 »
- activex 改变 大小 崩溃问题
- 这来有哪位大侠用过intel 的IPP库,效率方面到底能提升多少?
- SelectObject 函数 的问题不懂, 求大家指教
- DLL输出重定位之后的编译警告,快来看看!!!
- (100分)CAsyncSocket在Connect的时候为什么总出错??急!!急!!急!!急!!急!!
- 关于网络编程???
- 怎么样得到一个按钮的句柄?
- 我需要一个自己定颜色的SCROLLBAR,请问如何做。
- 请介绍几个初学vc的好的网站好么?
- 请问SetMenuItemInfo函数怎么使用?
- !!哪儿有水木清华bbs精华下载?
- 关于 CArray 的使用问题(??不能使用自己生成的类)?
http://www.codeproject.com/tools/minispy.asp
另外,设置一些断点,单步跟下去,看能不能!
HINSTANCE hInstance, // handle to application instance
LPCTSTR lpClassName, // class name
LPWNDCLASS lpWndClass // class data
);BOOL GetClassInfoEx(
HINSTANCE hinst, // handle to application instance
LPCTSTR lpszClass, // class name
LPWNDCLASSEX lpwcx // class data
);DWORD GetClassLong(
HWND hWnd, // handle to window
int nIndex // offset of value to retrieve
);