28 #include "../../idlib/precompiled.h"
31 #include "../../sys/win32/win_local.h"
64 AfxEnableControlContainer();
66 NONCLIENTMETRICS info;
67 info.cbSize =
sizeof(info);
69 ::SystemParametersInfo(SPI_GETNONCLIENTMETRICS,
sizeof(info), &info, 0);
72 memset(&lf, 0,
sizeof (LOGFONT));
75 lf.lfCharSet = (BYTE)GetTextCharsetInfo(dc.GetSafeHdc(),
NULL, 0);
77 lf.lfHeight = info.lfMenuFont.lfHeight;
78 lf.lfWeight = info.lfMenuFont.lfWeight;
79 lf.lfItalic = info.lfMenuFont.lfItalic;
82 _tcscpy(lf.lfFaceName, info.lfMenuFont.lfFaceName);
100 meMainFrame->ShowWindow(SW_SHOW);
101 meMainFrame->UpdateWindow();
109 MSG *msg = AfxGetCurrentMessage();
111 while( ::PeekMessage(msg,
NULL,
NULL,
NULL, PM_NOREMOVE) ) {
113 if ( !AfxGetApp()->PumpMessage() ) {
142 return meMainFrame->GetSafeHwnd();
158 DECLARE_MESSAGE_MAP()
171 CDialog::DoDataExchange(pDX);
Simple about box for the material editor.
CAboutDlg()
Constructor for the about box.
MEMainFrame * meMainFrame
void PrintConsoleMessage(const char *msg)
Called to add console text to the console view.
virtual void DoDataExchange(CDataExchange *pDX)
Called by the MFC framework to exchange data with the window controls.
void InitPropTree(HINSTANCE hInstance)
void MaterialEditorRun(void)
Called every frame by the doom engine to allow the material editor to process messages.
void MaterialEditorPrintConsole(const char *msg)
Allows the doom engine to reflect console output to the material editors console. ...
void MaterialEditorShutdown(void)
Called by the doom engine when the material editor needs to be destroyed.
HWND GetMaterialEditorWindow()
Returns the handle to the main Material Editor Window.
CFont * materialEditorFont
void MaterialEditorInit(void)
Initializes the material editor tool.
void Sys_GrabMouseCursor(bool)
The main window for the material editor.