Announcement

Collapse
No announcement yet.

What is %WM_User+48348 (49372) and 174?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • What is %WM_User+48348 (49372) and 174?

    I'm looking at messages coming into a dialog and I get these two that I can't explain. Any idea what they are?
    Code:
    #Compiler PBWin
    #Compile Exe
    #Dim All
    
    #Include "Win32API.Inc"
    
    Global hDlg As Dword
    
    Function PBMain () As Long
      Dialog New Pixels, 0, "", 200,200,500,200, %WS_OverlappedWindow To hDlg
      Dialog Show Modal hDlg Call DlgProc
    End Function
    
    CallBack Function DlgProc
      Select Case Cb.Msg
      Case %WM_User+48348: ? "48348"
      Case 174: ? "174"
      End Select
    End Function
    %WM_User+48348 comes up on startup and 174 fires when you pass the mouse over the dialog.

    Searching PBForums, MSDN and the Win32API.Inc files comes up empty, but I did find this nifty site of WM_ codes.

    https://wiki.winehq.org/List_Of_Windows_Messages

    Frank

  • #2
    https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx
    WM_USER = 1024
    WM_USER + 48348 = 49372 = hC0DC ' Application string message, so something PB does under the hood.

    174 = h00AE
    WM_MOUSEMOVE = h0200 ' so not that, still looking for 174.
    Dale

    Comment


    • #3
      Ahh, learned something. I thought anything above WM_User was available.

      I heard about RegisterWindowMessage (above hC000), but have yet to play with it. So probably something PB requested but it gets sent to my Dialog by mistake... or undocumented.

      Comment


      • #4
        Are you interested in either message message? No? So faggaboudit.
        Michael Mattias
        Tal Systems Inc.
        Racine WI USA
        mmattias@talsystems.com
        http://www.talsystems.com

        Comment


        • #5
          Originally posted by Michael Mattias View Post
          Are you interested in either message message? No? So faggaboudit.
          I can't know if I'm interested in it unless I know what it means. A bit of cart before the horse. If no one knows what it means then yes, ignore it and hope it doesn't bite you later. Probably an obsolete message in the OS.

          Comment


          • #6
            Hi Frank,

            174 is an undocumented themes drawing windows messages...

            %WM_NCUAHDRAWCAPTION = 0x00AE '174 Undocumented themes windows messages
            %WM_NCUAHDRAWFRAME = 0x00AF '175 Undocumented themes windows messages


            You may find some info on the net...

            Message Constants
            Zero to WM_USER –1 Messages reserved for use by the system.
            WM_USER to 0x7FFF Integer messages for use by private window classes.
            WM_APP to 0xBFFF Messages available for use by applications.
            0xC000 to 0xFFFF String messages for use by applications.
            Greater than 0xFFFF Reserved by the system.

            Comment


            • #7
              I can't know if I'm interested in [ a Windows' message] unless I know what it means. A bit of cart before the horse

              I think this is the backwards thinking.

              Seems to me as a programmer you should know to which messages you want to respond, allowing default processing ("faggetaboudit") for any others.

              And" if PB is registering a message it probably would not pass it thru the regular message analysis (SELECT CASE CB.MSG .) logic.


              MCM
              Michael Mattias
              Tal Systems Inc.
              Racine WI USA
              mmattias@talsystems.com
              http://www.talsystems.com

              Comment


              • #8
                Thanks Pierre. I figured someone with more resources would be able to point out something obsolete or undocumented.

                Michael: if I knew all the messages I needed to respond to, I would never ask any questions, because I know it all. Funny thing, I accept that I don't know it all, and when I find something that doesn't make sense, I research it. And when research comes up empty, I ask questions. Maybe I don't have a need to work with Themes today but someday when I do I will have Pierre's answer to look back to.

                Comment


                • #9
                  Michael: if I knew all the messages I needed to respond to, I would never ask any questions, because I know it all.
                  My point is that you need to learn about messages, but intercepting them all and working backward from that is NOT the way to do that. Some day - likely soon - you will need to work with a message you've never seen and don't know how to generate.

                  And as long as you will have Pierre's answer for future use, please note an important part of his message:
                  Zero to WM_USER –1 Messages reserved for use by the system.
                  "Reserved for use by the system" means don't touch them, don't try to use them and don't assume the same functional message will have the same value across all versions of WIndows.

                  Michael Mattias
                  Tal Systems Inc.
                  Racine WI USA
                  mmattias@talsystems.com
                  http://www.talsystems.com

                  Comment


                  • #10
                    There IS a reason for "undocumented."
                    Michael Mattias
                    Tal Systems Inc.
                    Racine WI USA
                    mmattias@talsystems.com
                    http://www.talsystems.com

                    Comment

                    Working...
                    X