Skip to content

Commit 4c72117

Browse files
committed
1
1 parent 9c50247 commit 4c72117

File tree

6 files changed

+196
-0
lines changed

6 files changed

+196
-0
lines changed

web/mainmenu.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class MainMenu {
3535

3636
this._Menu.addDataItem("/윈도우즈 프로그래밍", "../page-WinUI3/page.html");
3737
this._Menu.addDataItem("/윈도우즈 프로그래밍/WinUI3", "../page-WinUI3/page.html");
38+
this._Menu.addDataItem("/윈도우즈 프로그래밍/WinAPI", "../page-WinAPI/page.html");
3839

3940
this._Menu.addDataItem("/C++/문서", "../page-cpp-doc/page.html");
4041
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# WinAPI
2+
3+
## 디버깅용 콘솔창
4+
5+
### 설명서
6+
- https://learn.microsoft.com/en-us/windows/apps/winui/winui3/create-your-first-winui3-app
7+
8+
9+
### 수정1
10+
```C++
11+
12+
#ifdef _DEBUG
13+
#ifdef UNICODE
14+
#pragma comment(linker, "/entry:wWinMainCRTStartup /subsystem:console")
15+
#else
16+
#pragma comment(linker, "/entry:WinMainCRTStartup /subsystem:console")
17+
#endif
18+
#endif
19+
20+
```

web/page-WinAPI/page.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@charset "utf-8";
2+
3+

web/page-WinAPI/page.html

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
5+
<meta charset="utf-8" />
6+
<title>code1009</title>
7+
<link rel="stylesheet" type="text/css" href="../core.css" />
8+
<link rel="stylesheet" type="text/css" href="../menu.css" />
9+
<link rel="stylesheet" type="text/css" href="./page.css" />
10+
<script type="text/javascript" src="../core.js"></script>
11+
<script type="text/javascript" src="../menu.js"></script>
12+
<script type="text/javascript" src="../mainmenu.js"></script>
13+
<script type="text/javascript" src="../markdown.js"></script>
14+
<script type="text/javascript" src="./submenu.js"></script>
15+
<script type="text/javascript" src="./page.js"></script>
16+
17+
</head>
18+
<body>
19+
20+
<div id="page-container">
21+
22+
<div id="page-information"></div>
23+
24+
<div id="page-resizer"></div>
25+
26+
<div id="page-contents">
27+
<div id="subMenu" class="menu"></div>
28+
<br />
29+
<div id="page-markdown-view">
30+
</div>
31+
</div>
32+
33+
</div>
34+
35+
<script>
36+
function getMarkDownFileURL() {
37+
const params = new URLSearchParams(window.location.search);
38+
const page = params.get("page");
39+
return page ? `./${page}.md` : "./console_link_command.md";
40+
}
41+
42+
function initializeMarkdwonView() {
43+
const view = document.getElementById("page-markdown-view");
44+
if (!view) {
45+
return;
46+
}
47+
48+
const markdownFileURL = getMarkDownFileURL();
49+
50+
loadMarkDownScript(
51+
function () {
52+
renderMarkdwon("page-markdown-view", markdownFileURL);
53+
}
54+
);
55+
}
56+
57+
initializeMarkdwonView();
58+
</script>
59+
</body>
60+
</html>

web/page-WinAPI/page.js

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/////////////////////////////////////////////////////////////////////////////
2+
//===========================================================================
3+
"use strict";
4+
5+
6+
7+
8+
9+
/////////////////////////////////////////////////////////////////////////////
10+
//===========================================================================
11+
class Page {
12+
13+
#Context = null;
14+
15+
constructor() {
16+
this.#Context = null;
17+
}
18+
}
19+
20+
21+
22+
23+
24+
/////////////////////////////////////////////////////////////////////////////
25+
//===========================================================================
26+
var _Page = null;
27+
28+
29+
30+
31+
32+
/////////////////////////////////////////////////////////////////////////////
33+
//===========================================================================
34+
function initializePage() {
35+
_Page = new Page();
36+
}
37+
38+
39+
40+
41+
42+
/////////////////////////////////////////////////////////////////////////////
43+
//===========================================================================
44+
window.onload = function () {
45+
initializeCore();
46+
initializePage();
47+
48+
initializePageInformation();
49+
initializeMainMenu();
50+
51+
initializeSubMenu();
52+
}
53+
54+

web/page-WinAPI/submenu.js

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
/////////////////////////////////////////////////////////////////////////////
2+
//===========================================================================
3+
"use strict";
4+
5+
6+
7+
8+
9+
/////////////////////////////////////////////////////////////////////////////
10+
//===========================================================================
11+
class SubMenu {
12+
13+
_Menu = new Menu();
14+
15+
constructor() {
16+
this.registerMenuDataItem();
17+
this.initializeMenu();
18+
}
19+
20+
registerMenuDataItem() {
21+
this._Menu.addDataItem("/WinAPI" , "./page.html");
22+
this._Menu.addDataItem("/WinAPI/디버깅용 콘솔창" , "./page.html?page=console_link_command");
23+
24+
this._Menu.getRootItem().setExpanded(true);
25+
this._Menu.makeTreeItems();
26+
this._Menu.render("subMenu");
27+
}
28+
29+
initializeMenu() {
30+
this._Menu.makeTreeItems();
31+
32+
this._Menu.getRootItem().setExpanded(true);
33+
34+
for (let child of this._Menu.getRootItem().getChildren()) {
35+
child.setExpanded(true);
36+
}
37+
38+
this._Menu.render("subMenu");
39+
}
40+
}
41+
42+
43+
44+
45+
46+
/////////////////////////////////////////////////////////////////////////////
47+
//===========================================================================
48+
var _SubMenu = null;
49+
50+
51+
52+
53+
54+
/////////////////////////////////////////////////////////////////////////////
55+
//===========================================================================
56+
function initializeSubMenu() {
57+
_SubMenu = new SubMenu();
58+
}

0 commit comments

Comments
 (0)