arindam042099
asked on
OnCreate FUNCTION
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 ..
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.
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.
ASKER
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
U need to more specific. But i hope this helps,
Post the WM_CREATE message using PostMessage() or SendMessage().
Hope this helps,
Bye
abdij