开发者

Cannot open modal dialog containing MS FlexGrid activex control

开发者 https://www.devze.com 2023-03-31 20:38 出处:网络
I am trying to open dialog containing MS FlexGrid ActiveX control using DoModal() from an ActiveX control project(OCX). I added member variable for the FlexGrid control and genera开发者_JS百科ted a wr

I am trying to open dialog containing MS FlexGrid ActiveX control using DoModal() from an ActiveX control project(OCX). I added member variable for the FlexGrid control and genera开发者_JS百科ted a wrapper class for it through wizard. But the dialog is not showing up after DoModal(). I noticed that the OnInitDialog() is not getting called. The dialog appears if I remove the MS FlexGrid control from the dialog. I have no idea what did I miss.


In the same thread that creates the controls/dialogs make sure that you initialize things with the following calls before creating any of the controls/dialogs.

AfxEnableControlContainer();
CoInitialize();
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号