Home » Extra libraries, Code snippets, applications etc. » U++ users applications in progress and useful code snippets, including reference examples! » how to embed a D/COM control in my U++ GUI ?
Re: how to embed a D/COM control in my U++ GUI ? [message #653 is a reply to message #644] |
Mon, 23 January 2006 22:04   |
ucanca
Messages: 9 Registered: January 2006 Location: London, UK
|
Promising Member |
|
|
Hi - again.
Back from work and I had a look at U++'s internals.
Am I right in saying that to answer my own question above (how to handle Win32 messages), I need to:
1. Derive MyControl from Ctrl
2. Add the following code to MyControl.ccp
LRESULT MyControl::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
HWND hWnd = GetHWND();
switch(message) {
case WM_MessageIWantToHandle:
MyHandler(hWnd);
return 0;
}
return Ctrl::WindowProc(message, wParam, lParam);
}
void MyControl::MyHandler(HWND hWnd) { ... }
Is that all it takes or have I missed some key step?
Thanks!
[Updated on: Mon, 23 January 2006 22:12] Report message to a moderator
|
|
|
 |
|
how to embed a D/COM control in my U++ GUI ?
By: razvan on Fri, 20 January 2006 20:07
|
 |
|
Re: how to embed a D/COM control in my U++ GUI ?
By: rylek on Mon, 23 January 2006 10:25
|
 |
|
Re: how to embed a D/COM control in my U++ GUI ?
By: ucanca on Mon, 23 January 2006 15:08
|
 |
|
Re: how to embed a D/COM control in my U++ GUI ?
By: ucanca on Mon, 23 January 2006 22:04
|
 |
|
Re: how to embed a D/COM control in my U++ GUI ?
By: mirek on Mon, 23 January 2006 23:25
|
 |
|
Re: how to embed a D/COM control in my U++ GUI ?
By: ucanca on Tue, 24 January 2006 00:34
|
 |
|
Re: how to embed a D/COM control in my U++ GUI ?
By: hojtsy on Tue, 07 February 2006 17:15
|
 |
|
Re: how to embed a D/COM control in my U++ GUI ?
By: mirek on Tue, 07 February 2006 20:13
|
 |
|
Re: how to embed a D/COM control in my U++ GUI ?
By: hojtsy on Thu, 09 February 2006 12:31
|
 |
|
Re: how to embed a D/COM control in my U++ GUI ?
By: ucanca on Fri, 10 February 2006 01:27
|
 |
|
Re: how to embed a D/COM control in my U++ GUI ?
By: c-smile on Thu, 09 March 2006 07:17
|
Goto Forum:
Current Time: Sat May 10 02:42:58 CEST 2025
Total time taken to generate the page: 0.02531 seconds
|