Solved

OnCreate FUNCTION

Posted on 2000-05-05
4
513 Views
Last Modified: 2013-11-20
WM_CREATE calls the OnCreate func. ..before any appl. wnd is created .. How can I call it from some other function ... say a button from the dialog box ..
0
Comment
Question by:arindam042099
  • 2
4 Comments
 
LVL 2

Expert Comment

by:abdij
ID: 2782594
Hi,
 U need to more specific. But i hope this helps,

 Post the WM_CREATE message using PostMessage() or SendMessage().

Hope this helps,
Bye
abdij
0
 
LVL 12

Expert Comment

by:migel
ID: 2783620
Hi!
yor request sounds strange. Why you want call OnCreate method several times? Please avoid direct sending WM_CREATE msg to the window since it is WINDOWS system message and you can get unpredictable results.
If you you want just create new window use CMyWindow::Create(...).
If You want reset window state. just declare public function (say OnResetWindowState() ) and call it in the OnCreate handler and from any another place you want.
0
 

Author Comment

by:arindam042099
ID: 2784343
Let me be more specific here
I have to create a web browser applicationfor my SDI ... Where will I write the membervariable.Navigate() function ?? I was thinking of writing it on the OnCreate() function ...

I tried to create a window on this function ...
int CstabilityView()
{
....
membervariable.Create(....)

....
}
it was giving me a run time error ... handle exception

SORRY ABOUT NOT EXPLAINING MYSELF
0
 
LVL 12

Accepted Solution

by:
migel earned 2 total points
ID: 2796644
hm..
Use OnInitialUpdate method
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Different colored text in ComboBox without Subclassing 8 60
iSeries DB2 Query 2 95
Use of condition with 'serial' in ansible 2 58
Thin secure Windows 10 5 95
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
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.

776 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