Page MenuHomedesp's stash

AboutGui.cpp
No OneTemporary

AboutGui.cpp

#include "AboutGui.h"
#include "definitions.h"
BOOL AboutGui::OnInitDialog(CWindow wndFocus, LPARAM lInitParam)
{
StaticTitle.Attach(GetDlgItem(IDC_STATIC_ABOUT_TITLE));
StaticAbout.Attach(GetDlgItem(IDC_STATIC_ABOUT));
LOGFONT lf;
CFontHandle font = StaticTitle.GetFont();
font.GetLogFont(&lf);
lf.lfWeight = FW_BOLD;
FontBold.CreateFontIndirect(&lf);
StaticTitle.SetFont(FontBold, FALSE);
StaticTitle.SetWindowText(TEXT(APPNAME)TEXT(" ")TEXT(ARCHITECTURE)TEXT(" ")TEXT(APPVERSION));
StaticAbout.SetWindowText(TEXT(DEVELOPED)TEXT("\n\n\n")TEXT(CREDIT_DISTORM)TEXT("\n")TEXT(CREDIT_YODA)TEXT("\n\n")TEXT(GREETINGS)TEXT("\n\n\n")TEXT(VISIT));
CenterWindow();
return TRUE;
}
void AboutGui::OnCancel(UINT uNotifyCode, int nID, CWindow wndCtl)
{
FontBold.DeleteObject();
EndDialog(0);
}

File Metadata

Mime Type
text/x-c
Expires
Tue, Feb 10, 5:11 AM (1 d, 5 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
2a/dc/938040c4904a73f9b65ac1159139

Event Timeline