-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(unused) code to initialize the (one dialog's worth of) GUI
- Loading branch information
Nicholas O'Connor
committed
Jan 9, 2016
1 parent
21d6a4c
commit 0cde893
Showing
5 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include "gui.h" | ||
|
||
bool GUI::InitMFC() { //stub | ||
GUI::RegisterProtocol->Create(IDD_REGISTER_PROTOCOL); | ||
} | ||
|
||
bool GUI::ShowDialog(CDialog * tgt) { | ||
tgt->ShowWindow(SW_SHOWDEFAULT); // TODO: error checking | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#pragma once | ||
#ifndef __GUI_H | ||
#define __GUI_H | ||
|
||
#include <afxwin.h> | ||
#include "Tilandis.h" | ||
|
||
namespace GUI { | ||
class CTilandisWinApp : public CWinApp { | ||
public: | ||
BOOL InitInstance(); | ||
int Run(); | ||
}; | ||
|
||
CTilandisWinApp * TilandisWinApp = new CTilandisWinApp(); | ||
|
||
CDialog * RegisterProtocol = new CDialog(); | ||
|
||
bool InitMFC(); | ||
bool ShowDialog(CDialog *); | ||
} | ||
|
||
#endif |