Results 1 to 5 of 5

Thread: Personal Notofications windows in windows mobile

  1. #1
    Join Date
    Jan 2008
    Posts
    39
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Smile Personal Notofications windows in windows mobile

    hi!, i am tryng to develop custom notifications windows(or Dialog) in windows Mobile 6.5 when someone press a key, intercepting the original windows and showing mine. My question is how do i do that using Qt? Not exactly how to do it, some Tips or General Guides will be well recevied
    Os windows Mobile 6.5
    c++
    Qt 4.6
    Thx in advance

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Personal Notofications windows in windows mobile

    Things like that are done the other way around.
    You tell us what you tried, and where you have problems, we try to help you with that.
    For general guide lines you have the docs.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Jan 2008
    Posts
    39
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Personal Notofications windows in windows mobile

    1.- Interceppting the Volume Key:
    First Attemp:
    using RegisterHotKey();
    But the class where is have to be done this doesnt have the Hwnd, is QtObject derived.
    using
    QWidgetList list = QApplication::topLevelWidgets();
    to get the widget that is in top and get the handle to that window
    using:
    HWND hwnd=widget->effectiveWinId();
    previously assing the widget that is visible on top
    then trynng to catch WM_HOTKEY and then hidding the dialog from the top using EnumWindows; but i fail also tryng to get the dialog from system volume

    tryng to assing a random hwnd value to intercept that value in the GetMessage() containner loop, but i dont success it.

    I use that function (win32 ) in the constuctor of the main containner class but

  4. #4
    Join Date
    Jan 2008
    Posts
    39
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Personal Notofications windows in windows mobile

    first of all i need a hook keyboard:
    this links is what a i am tryng now: http://www.codeproject.com/Articles/...hooks-in-WinCE i am studyng and adapting this article to my needs. Second:
    I need to customized the system notification (Volume Control):
    I wil apply this approach. http://www.codeproject.com/Articles/...ttery-Very-Low
    Well i will inform the result

  5. #5
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Personal Notofications windows in windows mobile

    Why do you need a window id when a volume hot key is pressed?
    This key is not bound to any windows, is it?
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Qt and Windows Mobile 6.1
    By mlheese in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 30th August 2010, 16:00
  2. qt mobile on windows ce
    By gerapcik in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 11th August 2010, 09:51
  3. Use C# and Qt on Windows Mobile
    By Andi88 in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 17th July 2010, 21:24
  4. Can not run QT App on Windows Mobile
    By zyclop in forum Newbie
    Replies: 1
    Last Post: 22nd April 2010, 09:26
  5. Windows mobile 6 deployment
    By Gilles.Bordas in forum Installation and Deployment
    Replies: 4
    Last Post: 7th July 2008, 11:06

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.