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

Malyushytsky, Alex alex at wai.com
Wed Sep 8 03:57:44 CEST 2010


http://doc.qt.nokia.com/4.6/qwidget.html#winEvent
http://doc.qt.nokia.com/4.6/qcoreapplication.html#winEventFilter

Regards,
   Alex

-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of enjoywm at cs.wm.edu
Sent: Tuesday, September 07, 2010 3:09 PM
To: Jason H
Cc: qt
Subject: Re: [Qt-interest] How to ues a method in Win32 and MFC

Hi,

The question is can Qt handle native win32 message?

Thanks.
Yixun


> 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
>
>
>
>
>

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


---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.

“This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you.”

“Please consider our environment before printing this email.”




More information about the Qt-interest-old mailing list