如何在mfc中使用atl :: CAxWindow的滚动条。 [英] How do I use the scrollbars of an atl::CAxWindow in mfc.
问题描述
我在我的mfc mdi应用程序中使用ATL :: CAxWindow来托管一些Activex控件。
如何使用atl的滚动条:: CAxWindow?
我用来创建ATL CAxWindow的代码。
CAxWindow m_AxWnd;
CMDIChildWnd :: Create(lpszClassName,lpszWindowName,dwStyle,rect,pParentWnd,pContext);
AtlAxWinInit();
RECT altRect;
GetClientRect(&altRect);
m_AxWnd.Create(m_hWnd,altRect,NULL,WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL) ;
m_AxWnd.CreateControl(L一些ActiveX控件);
谢谢,
Hi,
I am using ATL::CAxWindow for hosting some Activex control in my mfc mdi application.
How do I use the scrollbars of an atl::CAxWindow ?
The code I used to create ATL CAxWindow.
CAxWindow m_AxWnd;
CMDIChildWnd::Create(lpszClassName, lpszWindowName, dwStyle, rect, pParentWnd, pContext);
AtlAxWinInit();
RECT altRect;
GetClientRect(&altRect);
m_AxWnd.Create(m_hWnd, altRect, NULL, WS_CHILD|WS_VISIBLE|WS_HSCROLL|WS_VSCROLL);
m_AxWnd.CreateControl(L"Some ActiveX control");
Thanks,
推荐答案
请不要在多个论坛中发布相同的问题。
Please do not post the same question in multiple forums.
这篇关于如何在mfc中使用atl :: CAxWindow的滚动条。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!