473,473 Members | 1,709 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 1339
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: S.W. Rasmussen | last post by:
With the risk of being accused of multi-posting I would like to draw the attention to a serious visual basic/windows issue discussed in the microsoft.public.vb.bugs newsgroup. As pointed out below...
3
by: Clive Moore | last post by:
Is it possible to load a CDialog from my application and display it without stopping the excution of a program. I have tried calling doModal from the initinstance function but this stops the rest...
5
by: MrNobody | last post by:
I am using the no-arg ShowDialog() method hoping that the window would not be modal to any other window like the other ShowDialog(IWin32Window) method does, but when this opens it somehow becomes...
0
by: Brent Baker | last post by:
In our application we've created some temporary dialog boxes. Rather than the usual method of 1) calling the constructor for the dialog, 2) doing other initialization 3) calling DoModal() 4)...
1
by: Jürg Fross | last post by:
Hi all, I have to recompile a MFC++ Program developped under NT4.0 in XP. We store the printer settings (DEVMODE and DEVNAMES) as part of our document. When printing in batch mode, we need to...
1
by: kmslick | last post by:
Hello all. Not sure which group this problem best relates to, so I'm posting to both with a follow up. I started learning C# and .NET last august for a project for my employer. The project...
0
by: alexh1000 | last post by:
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...
3
by: gopython | last post by:
Hi all, Python:2.5 OS: Windows XP I have posted couple questions regarding the wxPython. Since I am still a newbie to Python, wxPython makes more sense to me than pyWin for gui programming....
0
by: aarthiraaj | last post by:
In my user screen I have view link, if I click this link it will go to servlet and open one word document. It is opening properly, but while opening the attachment it generate one dialog box like...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.