Sowl  1.0
Simple Object Window Library
DialogWindow.h
1 #pragma once
2 #include "../WindowWithMessages.h"
3 
4 namespace sowl
5 {
8  {
9  public:
10  LRESULT Process(UINT uMsg, WPARAM wParam, LPARAM lParam) override;
11  virtual bool OnInitDialog(HWND hFocusWindow);
12  virtual bool OnCommand(int notificationCode, int senderId, HWND controlHandle);
13  virtual bool OnClose() = 0;
14 
15  protected:
16  static LRESULT CALLBACK BindAndProcess(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
17 
18  private:
19  HINSTANCE processHandle = nullptr;
20  HWND parentHandle = nullptr;
21  LPCWSTR templateName;
22  };
23 }
A Window with its own window procedure.
Definition: WindowWithMessages.h:9
Encapsulates a dialogbox window handle.
Definition: DialogWindow.h:7