Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Font Enumerator

, 1 Sep 2009 CPOL
A tool that enumerates all fonts installed on Windows, and shows you the preview so as to help you code conveniently.
fontenumerator.zip
FontEnumerator_src.zip
FontEnumerator1.gif
FontEnumerator2.gif
FontEnumerator3.gif
FontEnumerator_demo.zip
fontenumerator_demo.zip
FontEnumerator.exe
fontenumerator_src.zip
FontEnumerator
res
FontEnumerator.ico
Youngho.bmp
YTL
// 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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

PARK Youngho

Korea (Republic Of) Korea (Republic Of)
I like programming.

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.141223.1 | Last Updated 2 Sep 2009
Article Copyright 2009 by PARK Youngho
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid