项目作者: OneMeanDragon
项目描述 :
The math behind window anchoring.
高级语言: C++
项目地址: git://github.com/OneMeanDragon/wResize.git
wResize
The math behind window anchoring.
Example (yes unoptomized)
#include "mResize.h"
wResize myWindows;
//Only use this line if you created your menu with the neccessary API calls.
//Prior to adding your child windows to the class.
//MyWindows->AddMenuHeight(MainWindow());
//On your window initalizers
HWND hButton1 = GetDlgItem(MainWindow(), IDC_BUTTON1);
myWindows.AddWindow(MainWindow(), hButton1, true, true, true, true); //this example will resize height and width
//On your dialog process callback
case WM_SIZE: { return myWindows.ResizeWindows(); }