DoModal returns -1 when opening dialog with flexgid

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
alexh1000 said:
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
 
Back
Top