Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. about SendMessage

about SendMessage

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
7 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mt_samiei
    wrote on last edited by
    #1

    Dear all Hi is there any example which uses SendMessage routine. Regards Monhi

    CPalliniC N H 3 Replies Last reply
    0
    • M mt_samiei

      Dear all Hi is there any example which uses SendMessage routine. Regards Monhi

      CPalliniC Offline
      CPalliniC Offline
      CPallini
      wrote on last edited by
      #2

      There is (of course) a lot of doumentation about (with related samples), see, for instance http://msdn2.microsoft.com/en-us/library/ms644950.aspx[^]. :)

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

      In testa che avete, signor di Ceprano?

      R 1 Reply Last reply
      0
      • M mt_samiei

        Dear all Hi is there any example which uses SendMessage routine. Regards Monhi

        N Offline
        N Offline
        nitin3
        wrote on last edited by
        #3

        //LRESULT SendMesage ( HWND hWnd , UINT message , WPARAM wParam , LPARAM lParam ) //hWnd : Handle to window //message : WM_***** message ( eg:EM_CLOSE , WM_PAINT ... ) wParam & lParam : additional message specific arguments //MFC //--- void CMyDlg::OnBnClickedOk() { SendMessage( WM_CLOSE , (WPARAM)0 , (LPARAM)0 ) ; //close current window //or ::SendMessage( HWND_BROADCAST , WM_CLOSE , (WPARAM)0 , (LPARAM)0 ) ; /*close desktop windows */ }; //WIN32 // //#include LRESULT OnAnyEvent( HWND hWnd )//invoked from windowproc { SendMessage( hWnd , WM_CLOSE , (WPARAM)0 , (LPARAM)0 ) ; } //Visit msdn for complete reference for Windows Messages

        1 Reply Last reply
        0
        • CPalliniC CPallini

          There is (of course) a lot of doumentation about (with related samples), see, for instance http://msdn2.microsoft.com/en-us/library/ms644950.aspx[^]. :)

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

          R Offline
          R Offline
          Rajesh R Subramanian
          wrote on last edited by
          #4

          CPallini wrote:

          There is (of course) a lot of doumentation about (with related samples), see, for instance http://msdn2.microsoft.com/en-us/library/ms644950.aspx\[^\].

          I wonder how you find these things. ;P


          Nobody can give you wiser advice than yourself. - Cicero

          CPalliniC 1 Reply Last reply
          0
          • M mt_samiei

            Dear all Hi is there any example which uses SendMessage routine. Regards Monhi

            H Offline
            H Offline
            Hamid Taebi
            wrote on last edited by
            #5

            And see an example[^].;)


            WhiteSky


            1 Reply Last reply
            0
            • R Rajesh R Subramanian

              CPallini wrote:

              There is (of course) a lot of doumentation about (with related samples), see, for instance http://msdn2.microsoft.com/en-us/library/ms644950.aspx\[^\].

              I wonder how you find these things. ;P


              Nobody can give you wiser advice than yourself. - Cicero

              CPalliniC Offline
              CPalliniC Offline
              CPallini
              wrote on last edited by
              #6

              I wonder how the OP cannot! :-D

              If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

              In testa che avete, signor di Ceprano?

              H 1 Reply Last reply
              0
              • CPalliniC CPallini

                I wonder how the OP cannot! :-D

                If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

                H Offline
                H Offline
                Hamid Taebi
                wrote on last edited by
                #7

                CPallini wrote:

                I wonder how the OP cannot!

                Maybe you are lucky.;P


                WhiteSky


                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups