CMenu::SetMenu

SetMenuを実装する・・・。
本来MFCだとCWndに実装してあるので、CWindowに実装するのが普通だが、今回はCMenuに実装して、hwndを指定するようなタイプにしてみる・・・。

Menu.hは、

Menu.cppは、

Window.cppのOnCreateで、

こんな感じで呼び出す・・・。

f:id:BG1:20150621194834p:plain

で、

f:id:BG1:20150621194956p:plain

https://github.com/bg1bgst333/Test/blob/master/winapi/CMenu/SetMenu/src/SetMenu/SetMenu/WinMain.cpp
https://github.com/bg1bgst333/Test/blob/master/winapi/CMenu/SetMenu/src/SetMenu/SetMenu/Application.h
https://github.com/bg1bgst333/Test/blob/master/winapi/CMenu/SetMenu/src/SetMenu/SetMenu/Application.cpp
https://github.com/bg1bgst333/Test/blob/master/winapi/CMenu/SetMenu/src/SetMenu/SetMenu/Window.h
https://github.com/bg1bgst333/Test/blob/master/winapi/CMenu/SetMenu/src/SetMenu/SetMenu/Window.cpp
https://github.com/bg1bgst333/Test/blob/master/winapi/CMenu/SetMenu/src/SetMenu/SetMenu/Menu.h
https://github.com/bg1bgst333/Test/blob/master/winapi/CMenu/SetMenu/src/SetMenu/SetMenu/Menu.cpp
https://github.com/bg1bgst333/Test/blob/master/winapi/CMenu/SetMenu/src/SetMenu/SetMenu/resource.h
https://github.com/bg1bgst333/Test/blob/master/winapi/CMenu/SetMenu/src/SetMenu/SetMenu/SetMenu.rc