项目作者: OneMeanDragon

项目描述 :
The math behind window anchoring.
高级语言: C++
项目地址: git://github.com/OneMeanDragon/wResize.git
创建时间: 2018-10-01T01:58:33Z
项目社区:https://github.com/OneMeanDragon/wResize

开源协议:MIT License

下载


wResize

The math behind window anchoring.

Example (yes unoptomized)

  1. #include "mResize.h"
  2. wResize myWindows;
  3. //Only use this line if you created your menu with the neccessary API calls.
  4. //Prior to adding your child windows to the class.
  5. //MyWindows->AddMenuHeight(MainWindow());
  6. //On your window initalizers
  7. HWND hButton1 = GetDlgItem(MainWindow(), IDC_BUTTON1);
  8. myWindows.AddWindow(MainWindow(), hButton1, true, true, true, true); //this example will resize height and width
  9. //On your dialog process callback
  10. case WM_SIZE: { return myWindows.ResizeWindows(); }