[Qt-interest] How to ues a method in Win32 and MFC

Jason H scorp1us at yahoo.com
Tue Sep 7 22:53:26 CEST 2010


You'll have to make a QWidget with a native window handle, I think you can set 
that on a per-application basis.  Then call that function as you would for any 
other HWND





----- Original Message ----
From: "enjoywm at cs.wm.edu" <enjoywm at cs.wm.edu>
To: qt <qt-interest at trolltech.com>
Sent: Tue, September 7, 2010 4:14:05 PM
Subject: [Qt-interest] How to ues a method in Win32 and MFC

Hi,
The following method works in win32 app. and microsoft MFC app.

I would like to know how to use it in Qt.

This method associates a message to a specific window. Afterward, any
events received by the application in the singular form of a WM_RECOEVENT
message will be sent to the window pointed to by hWnd.

HRESULT SetNotifyWindowMessage(
   HWND     hWnd,
   UINT     Msg,
   WPARAM   wParam,
   LPARAM   lParam
);


hWnd
[in] Handle to the window whose message handler function will receive SAPI
notifications.
Msg
[in] Message number which will be passed into the message handler function
of the window hWnd.

Thank you in advance!

Yixun

_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest



      



More information about the Qt-interest-old mailing list