Skip to content

Commit 1baf647

Browse files
committed
add wtl labrary into repo (?wtl????repo)
1 parent 818a5d0 commit 1baf647

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+62330
-0
lines changed

Thirdparty/wtl/AppWiz/Files/HTML/1033/AppType.htm

Lines changed: 466 additions & 0 deletions
Large diffs are not rendered by default.

Thirdparty/wtl/AppWiz/Files/HTML/1033/UIFeatures.htm

Lines changed: 538 additions & 0 deletions
Large diffs are not rendered by default.

Thirdparty/wtl/AppWiz/Files/HTML/1033/default.htm

Lines changed: 536 additions & 0 deletions
Large diffs are not rendered by default.
486 Bytes
Loading
1.21 KB
Loading

Thirdparty/wtl/AppWiz/Files/Scripts/1033/default.js

Lines changed: 539 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// aboutdlg.cpp : implementation of the CAboutDlg class
2+
//
3+
/////////////////////////////////////////////////////////////////////////////
4+
5+
#include "stdafx.h"
6+
#include "resource.h"
7+
8+
#include "aboutdlg.h"
9+
10+
LRESULT CAboutDlg::OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
11+
{
12+
CenterWindow(GetParent());
13+
return TRUE;
14+
}
15+
16+
LRESULT CAboutDlg::OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
17+
{
18+
EndDialog(wID);
19+
return 0;
20+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
// aboutdlg.h : interface of the CAboutDlg class
2+
//
3+
/////////////////////////////////////////////////////////////////////////////
4+
5+
#pragma once
6+
7+
class CAboutDlg : public CDialogImpl<CAboutDlg>
8+
{
9+
public:
10+
enum { IDD = IDD_ABOUTBOX };
11+
12+
BEGIN_MSG_MAP(CAboutDlg)
13+
MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
14+
COMMAND_ID_HANDLER(IDOK, OnCloseCmd)
15+
COMMAND_ID_HANDLER(IDCANCEL, OnCloseCmd)
16+
END_MSG_MAP()
17+
18+
// Handler prototypes (uncomment arguments if needed):
19+
// LRESULT MessageHandler(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
20+
// LRESULT CommandHandler(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
21+
// LRESULT NotifyHandler(int /*idCtrl*/, LPNMHDR /*pnmh*/, BOOL& /*bHandled*/)
22+
23+
[!if WTL_USE_CPP_FILES]
24+
LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
25+
[!else]
26+
LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
27+
{
28+
CenterWindow(GetParent());
29+
return TRUE;
30+
}
31+
32+
[!endif]
33+
[!if WTL_USE_CPP_FILES]
34+
LRESULT OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
35+
[!else]
36+
LRESULT OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
37+
{
38+
EndDialog(wID);
39+
return 0;
40+
}
41+
[!endif]
42+
};
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
// [!output WTL_CHILD_FRAME_FILE].cpp : implementation of the [!output WTL_CHILD_FRAME_CLASS] class
2+
//
3+
/////////////////////////////////////////////////////////////////////////////
4+
5+
#include "stdafx.h"
6+
#include "resource.h"
7+
8+
[!if WTL_USE_VIEW]
9+
#include "[!output WTL_VIEW_FILE].h"
10+
[!endif]
11+
#include "[!output WTL_CHILD_FRAME_FILE].h"
12+
13+
void [!output WTL_CHILD_FRAME_CLASS]::OnFinalMessage(HWND /*hWnd*/)
14+
{
15+
delete this;
16+
}
17+
18+
[!if WTL_USE_VIEW]
19+
LRESULT [!output WTL_CHILD_FRAME_CLASS]::OnCreate(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& bHandled)
20+
{
21+
[!if WTL_VIEWTYPE_FORM]
22+
m_hWndClient = m_view.Create(m_hWnd);
23+
[!else]
24+
[!if WTL_VIEWTYPE_HTML]
25+
//TODO: Replace with a URL of your choice
26+
m_hWndClient = m_view.Create(m_hWnd, rcDefault, _T("http://www.microsoft.com"), [!output WTL_VIEW_STYLES], [!output WTL_VIEW_EX_STYLES]);
27+
[!else]
28+
m_hWndClient = m_view.Create(m_hWnd, rcDefault, NULL, [!output WTL_VIEW_STYLES], [!output WTL_VIEW_EX_STYLES]);
29+
[!if WTL_VIEWTYPE_LISTBOX || WTL_VIEWTYPE_EDIT || WTL_VIEWTYPE_LISTVIEW || WTL_VIEWTYPE_TREEVIEW || WTL_VIEWTYPE_RICHEDIT]
30+
m_view.SetFont(AtlGetDefaultGuiFont());
31+
[!endif]
32+
[!if WTL_VIEWTYPE_SCROLL]
33+
// replace with appropriate values for the app
34+
m_view.SetScrollSize(2000, 1000);
35+
[!endif]
36+
[!endif]
37+
[!endif]
38+
39+
bHandled = FALSE;
40+
return 1;
41+
}
42+
43+
[!endif]
44+
LRESULT [!output WTL_CHILD_FRAME_CLASS]::OnForwardMsg(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM lParam, BOOL& /*bHandled*/)
45+
{
46+
LPMSG pMsg = (LPMSG)lParam;
47+
48+
[!if WTL_USE_VIEW]
49+
if([!output WTL_CHILD_FRAME_BASE_CLASS]<[!output WTL_CHILD_FRAME_CLASS]>::PreTranslateMessage(pMsg))
50+
return TRUE;
51+
52+
return m_view.PreTranslateMessage(pMsg);
53+
[!else]
54+
return [!output WTL_CHILD_FRAME_BASE_CLASS]<[!output WTL_CHILD_FRAME_CLASS]>::PreTranslateMessage(pMsg);
55+
[!endif]
56+
}
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
// [!output WTL_CHILD_FRAME_FILE].h : interface of the [!output WTL_CHILD_FRAME_CLASS] class
2+
//
3+
/////////////////////////////////////////////////////////////////////////////
4+
5+
#pragma once
6+
7+
class [!output WTL_CHILD_FRAME_CLASS] : public [!output WTL_CHILD_FRAME_BASE_CLASS]<[!output WTL_CHILD_FRAME_CLASS]>
8+
{
9+
public:
10+
DECLARE_FRAME_WND_CLASS(NULL, IDR_MDICHILD)
11+
12+
[!if WTL_USE_VIEW]
13+
[!output WTL_VIEW_CLASS] m_view;
14+
15+
[!endif]
16+
[!if WTL_USE_CPP_FILES]
17+
virtual void OnFinalMessage(HWND /*hWnd*/);
18+
[!else]
19+
virtual void OnFinalMessage(HWND /*hWnd*/)
20+
{
21+
delete this;
22+
}
23+
[!endif]
24+
25+
BEGIN_MSG_MAP([!output WTL_CHILD_FRAME_CLASS])
26+
[!if WTL_USE_VIEW]
27+
MESSAGE_HANDLER(WM_CREATE, OnCreate)
28+
[!endif]
29+
MESSAGE_HANDLER(WM_FORWARDMSG, OnForwardMsg)
30+
CHAIN_MSG_MAP([!output WTL_CHILD_FRAME_BASE_CLASS]<[!output WTL_CHILD_FRAME_CLASS]>)
31+
END_MSG_MAP()
32+
33+
// Handler prototypes (uncomment arguments if needed):
34+
// LRESULT MessageHandler(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
35+
// LRESULT CommandHandler(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
36+
// LRESULT NotifyHandler(int /*idCtrl*/, LPNMHDR /*pnmh*/, BOOL& /*bHandled*/)
37+
38+
[!if WTL_USE_VIEW]
39+
[!if WTL_USE_CPP_FILES]
40+
LRESULT OnCreate(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& bHandled);
41+
[!else]
42+
LRESULT OnCreate(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& bHandled)
43+
{
44+
[!if WTL_VIEWTYPE_FORM]
45+
m_hWndClient = m_view.Create(m_hWnd);
46+
[!else]
47+
[!if WTL_VIEWTYPE_HTML]
48+
//TODO: Replace with a URL of your choice
49+
m_hWndClient = m_view.Create(m_hWnd, rcDefault, _T("http://www.microsoft.com"), [!output WTL_VIEW_STYLES], [!output WTL_VIEW_EX_STYLES]);
50+
[!else]
51+
m_hWndClient = m_view.Create(m_hWnd, rcDefault, NULL, [!output WTL_VIEW_STYLES], [!output WTL_VIEW_EX_STYLES]);
52+
[!if WTL_VIEWTYPE_LISTBOX || WTL_VIEWTYPE_EDIT || WTL_VIEWTYPE_LISTVIEW || WTL_VIEWTYPE_TREEVIEW || WTL_VIEWTYPE_RICHEDIT]
53+
m_view.SetFont(AtlGetDefaultGuiFont());
54+
[!endif]
55+
[!if WTL_VIEWTYPE_SCROLL]
56+
// replace with appropriate values for the app
57+
m_view.SetScrollSize(2000, 1000);
58+
[!endif]
59+
[!endif]
60+
[!endif]
61+
62+
bHandled = FALSE;
63+
return 1;
64+
}
65+
66+
[!endif]
67+
[!endif]
68+
[!if WTL_USE_CPP_FILES]
69+
LRESULT OnForwardMsg(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM lParam, BOOL& /*bHandled*/);
70+
[!else]
71+
LRESULT OnForwardMsg(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM lParam, BOOL& /*bHandled*/)
72+
{
73+
LPMSG pMsg = (LPMSG)lParam;
74+
75+
[!if WTL_USE_VIEW]
76+
if([!output WTL_CHILD_FRAME_BASE_CLASS]<[!output WTL_CHILD_FRAME_CLASS]>::PreTranslateMessage(pMsg))
77+
return TRUE;
78+
79+
return m_view.PreTranslateMessage(pMsg);
80+
[!else]
81+
return [!output WTL_CHILD_FRAME_BASE_CLASS]<[!output WTL_CHILD_FRAME_CLASS]>::PreTranslateMessage(pMsg);
82+
[!endif]
83+
}
84+
[!endif]
85+
};

0 commit comments

Comments
 (0)