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. how we can use MapWindowPoints

how we can use MapWindowPoints

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
4 Posts 4 Posters 2 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.
  • H Offline
    H Offline
    happy_ram
    wrote on last edited by
    #1

    i canot understand how to use MapWindowPoints.so please tell how to use this with a\small example. thank u, sree.

    _ 1 Reply Last reply
    0
    • H happy_ram

      i canot understand how to use MapWindowPoints.so please tell how to use this with a\small example. thank u, sree.

      _ Offline
      _ Offline
      _AnsHUMAN_
      wrote on last edited by
      #2

      If hwnd1 or hwnd2(or both) are mirrored windows (that is, have WS_EX_LAYOUTRTL extended style), MapWindowPoints will automatically adjust mirrored coordinates if you pass two or less points in lpPoints.

       RECT rect[10];
         for(int i =0; i < (sizeof(rect)/sizeof(rect[0])); i++)
         {
             MapWindowPoints(hWnd1, hWnd2, (LPPOINT)(&rect[i]), (sizeof(RECT)/sizeof(POINT)) );
         }
      

      //where hwnd1,hwnd2 are handle to the mirrored windows Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_

      T 1 Reply Last reply
      0
      • _ _AnsHUMAN_

        If hwnd1 or hwnd2(or both) are mirrored windows (that is, have WS_EX_LAYOUTRTL extended style), MapWindowPoints will automatically adjust mirrored coordinates if you pass two or less points in lpPoints.

         RECT rect[10];
           for(int i =0; i < (sizeof(rect)/sizeof(rect[0])); i++)
           {
               MapWindowPoints(hWnd1, hWnd2, (LPPOINT)(&rect[i]), (sizeof(RECT)/sizeof(POINT)) );
           }
        

        //where hwnd1,hwnd2 are handle to the mirrored windows Somethings seem HARD to do, until we know how to do them. ;-) _AnShUmAn_

        T Offline
        T Offline
        tono12345
        wrote on last edited by
        #3

        What a help to copy the MSDN site text here. Jesus totally useless answer.

        L 1 Reply Last reply
        0
        • T tono12345

          What a help to copy the MSDN site text here. Jesus totally useless answer.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          So you waited almost fifteen years, just to insult someone.

          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