ButtonController :
1. can draw on screen.
2. can change selected button.
Appendix:
3. can use short cut.
I added lootin anyway wwButtonController.cpp and wButto, which becomes to have a lootin main process can kick.
// wButtonController.cpp
//( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam )
//
//
// added 20190118
//
void wButtonController::kickEveentButtons ( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam ) {
for ( int i=0; i<this->number_button; i++ ) {
AryButton[ i ]->kickEveentButton( hWnd, uMsg, wParam, lParam );
}
}
// wButton.cpp
//( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam )
//
// added 20190118
//
//
void wButton::kickEveentButton ( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam ) {
// kick event
}
I'm pleasure if you download the below.
https://github.com/WaitrudWeber/source_zip/blob/master/display-20190118.zip
Please reffer to the below for compilation.
https://waitrudweber.hatenablog.com/entry/2018/05/01/005938