Modification of window size in non-standard interface



  • I'm doing a program with a non-standard interface. The current challenge is to make a mouse change the size of the window. The idea was to make regions that coincide with the window, and if a cadet was introduced over such a region, the LCM was pressed, the mice movements changed the size of the window. Is that a good idea, or can you think of something better? I'm writing on C, only using WinAPI.



  • The idea is good, but what are you going to do with it?

    I can suggest that:

    1. intercept WM_NCHITTEST
    2. Determine that the mouse courseor is at the border of the region,
    3. build a normal to his trench at this point
    4. and approaching one of the axles (left, right, top, bottom, left-top, left-bottom, right-top, right-bottom)
    5. Depending on the axis approached, we return from WM_NCHITTEST result, deleting DefWindowProc: HTLEFTHTRIGHTHTTOPHTBOTTOMHTTOPLEFTHTBOTTOMLEFTHTTOPRIGHTHTBOTTOMRIGHT

    The rest should be done. ОС




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2