|
// This file was generated by WTL Dialog wizard
// InputSampleString.cpp : Implementation of InputSampleString
#include "stdafx.h"
#include "InputSampleString.h"
// InputSampleString
InputSampleString::InputSampleString(std::tstring& strSample)
{
m_strExample = strSample;
}
InputSampleString::~InputSampleString()
{
}
LRESULT InputSampleString::OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
uMsg; wParam; lParam; bHandled;
DoDataExchange();
switch (_Lang)
{
case LANG_KOREAN:
m_wndIdok.SetWindowText(STR_CONFIRM);
m_wndIdcancel.SetWindowText(STR_CANCEL);
this->SetWindowText(STR_INPUT_EXAMPLE);
break;
default:
m_wndIdok.SetWindowText(STR_CONFIRM_ENG);
m_wndIdcancel.SetWindowText(STR_CANCEL_ENG);
this->SetWindowText(STR_INPUT_EXAMPLE_ENG);
break;
}
m_wndSample.SetLimitText(LIMIT_TEXT);
m_wndSample.SetWindowText(m_strExample.c_str());
m_wndSample.SetFocus();
WindowsHelper::setFont<true>(_Font, *this);
return 1; // Let the system set the focus
}
LRESULT InputSampleString::OnClickedOK(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
{
wNotifyCode; wID; hWndCtl; bHandled;
DoDataExchange(TRUE);
TCHAR temp[LIMIT_TEXT + 1];
m_wndSample.GetWindowText(temp, LIMIT_TEXT + 1);
m_strExample = temp;
EndDialog(wID);
return 0;
}
LRESULT InputSampleString::OnClickedCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled)
{
wNotifyCode; wID; hWndCtl; bHandled;
EndDialog(wID);
return 0;
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I like programming.
I am teaching at AUCA (American University of Central Asia) now.