-
Notifications
You must be signed in to change notification settings - Fork 2
/
FindWordDialog.cpp
40 lines (32 loc) · 923 Bytes
/
FindWordDialog.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// FindWordDialog.cpp : implementation file
//
#include "stdafx.h"
#include "SCIPicEditor.h"
#include "FindWordDialog.h"
#include "dlgs.h"
// CFindWordDialog dialog
CFindWordDialog::CFindWordDialog(CWnd* pParent /*=NULL*/)
: CFindReplaceDialog()
{
// REVIEW: this does not work!!
this->m_fr.hInstance = AfxGetInstanceHandle();
this->m_fr.Flags |= FR_ENABLETEMPLATE;
this->m_fr.lpTemplateName = MAKEINTRESOURCE(IDD_DIALOGFINDWORD);
}
CFindWordDialog::~CFindWordDialog()
{
}
void CFindWordDialog::DoDataExchange(CDataExchange* pDX)
{
__super::DoDataExchange(pDX);
DDX_Control(pDX, IDC_STATICSTATUS, m_wndStatus);
DDX_Control(pDX, edt1, m_wndWord);
}
void CFindWordDialog::SetStatus(PCTSTR pszStatus)
{
m_wndStatus.SetWindowText(pszStatus);
m_wndWord.SetSel(0, -1, FALSE);
}
BEGIN_MESSAGE_MAP(CFindWordDialog, CFindReplaceDialog)
END_MESSAGE_MAP()
// CFindWordDialog message handlers