[ Home | Contents | Search | Next | Previous | Up ]
Date: 19 Feb 2000
Time: 06:43:49
Remote Name: 199.203.141.97
Q. How I can call OWL Dialog from Non OWL Application.
A.
Create OWL Dialog in DLL. | |
Create C callable function that will create and execute Dialog, for example extern "C" int PASCAL __export CallDialog(HWND parentHWnd, COLORREF& colorBuffer) { // Create an alias OWL application object when called from anon-OWL // program so that TDialog is happy // TModule* appModule; TApplication dummyApp("color dialog app", appModule); TWindow parentAlias(parentHWnd, ::gModule); return TColorDialog(&parentAlias, (TColor&)colorBuffer).Execute(); } | |
You can call this function from any Application. |
Yura