U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Widgets - General questions or Mixed problems » CDialog::OnInitDialog (MFC) like method?
Re: CDialog::OnInitDialog (MFC) like method? [message #29687 is a reply to message #29686] Mon, 08 November 2010 14:36 Go to previous messageGo to previous message
cbpporter is currently offline  cbpporter
Messages: 1428
Registered: September 2007
Ultimate Contributor
U++ control exist from the point they are constructed, so usualy you should have no problems. Exception is for controls that are linked to the underlying windows system, like TopWindow. In the constructor it is not guaranteed to have a HWND because your window is not open yet and for WinAPI it may not exist. In your button handler the window already exists and is open.

I would recommend adding a method that opens the window and sets the correct parameters if it must be done each time.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem with Calendar control
Next Topic: widget or source code to handle dicom files
Goto Forum:
  


Current Time: Thu Sep 17 12:05:30 GMT+2 2026

Total time taken to generate the page: 0.00671 seconds