MusicKeyboard/src/Keyboard.cpp

23 lines
631 B
C++
Raw Normal View History

2013-06-02 22:14:25 -04:00
#include <MainWindow.hpp>
#include <commctrl.h>
#pragma comment(lib, "comctl32.lib")
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow) {
UNREFERENCED_PARAMETER(hInstance);
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
InitCommonControls();
MainWindow *win = MainWindow::Create(L"Music Keyboard");
if (win) {
ShowWindow(win->GetHWND(), nCmdShow);
MSG msg;
while (GetMessage(&msg, NULL, 0, 0) > 0) {
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
return 0;
}