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 » How to call instance in main.cpp
Re: How to call instance in main.cpp [message #5128 is a reply to message #5127] Wed, 06 September 2006 16:55 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Database instance? Like Oracle or MySQL? But that has nothing to do with AfxGetApp...

I guess what you want is to get some reference to the main window?

There is nothing like AfxGetApp in U++. All top-level owner-less windows are peer. You can get a list of all top-level windows or Ctrls by calling

static Vector<Ctrl *> Ctrl::GetTopCtrls();
static Vector<Ctrl *> Ctrl::GetTopWindows();

if this does not help, what did you plan to do with AfxGetApp-like function?

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: always-on-top window
Next Topic: StaticRect blocks mouse events - deliberate?
Goto Forum:
  


Current Time: Sun May 05 01:00:24 CEST 2024

Total time taken to generate the page: 0.04150 seconds