Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 1401
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: Tue May 14 15:22:06 CEST 2024

Total time taken to generate the page: 0.02372 seconds