Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

OnCreate FUNCTION

Posted on 2000-05-05
4
Medium Priority
?
525 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 4 total points
ID: 2796644
hm..
Use OnInitialUpdate method
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

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…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses
Course of the Month8 days, 4 hours left to enroll

824 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