470,619 Members | 1,485 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,619 developers. It's quick & easy.

DoModal returns -1 when opening dialog with flexgid

When I insert the FlexGrid control in a dialog (using controls toolbar) the
dialog fails to open on program execution (DoModal returns a -1). If I remove
the FlexGrid from the dialog, the dialog opens so it is definitely a flexgrid
related issue. This is using VC++ 6.0

I did not change any of the default FlexGrid properties yet.

Thanks
Sep 29 '06 #1
1 1223
"alexh1000" <al*******@discussions.microsoft.comwrote in message
news:82**********************************@microsof t.com...
When I insert the FlexGrid control in a dialog (using controls toolbar)
the
dialog fails to open on program execution (DoModal returns a -1). If I
remove
the FlexGrid from the dialog, the dialog opens so it is definitely a
flexgrid
related issue. This is using VC++ 6.0

I did not change any of the default FlexGrid properties yet.
More often than not, a problem like this is related to an initialization
step that you forget. If the control uses COM or a common control you'd need
to call CoInitialize() or InitCommonControlsEx().

Regards,
Will
Sep 29 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Clive Moore | last post: by
reply views Thread by Brent Baker | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.