[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

OnInitDialog is not called in WinCE!

Posted on 1998-09-09
3
Medium Priority
?
411 Views
Last Modified: 2013-11-20
VC++5.0
WinCE toolkit
x86 emulation

Hi,
I wrote a class derived from CFileDialog.
The problem: the OnInitDialog() method is not called druring the DoModal() call.
I tried the same code within a Win32 app and my overridden OnInitDialog() is called!!!
Please help!
Regards dib.
0
Comment
Question by:dib
3 Comments
 

Author Comment

by:dib
ID: 1321963
Edited text of question
0
 
LVL 23

Expert Comment

by:chensu
ID: 1321964
Use Spy++ to see if the WM_INITDIALOG message is sent.
0
 
LVL 1

Accepted Solution

by:
plebel earned 400 total points
ID: 1321965
did you try to trap the WM_INITDIALOG message or did you just overide the OnInitDialog() function.

Try catching the WM_INITDIALOG message first.  The ClassWizard  will create an OnInitDialog() function which will be catch by the application
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

868 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question