29 #include "../../idlib/precompiled.h"
34 #include "mediapreviewdlg.h"
74 CDialog::DoDataExchange(pDX);
92 CDialog::OnInitDialog();
94 wndPreview.setDrawable(&testDrawable);
96 LONG lSize =
sizeof(rct);
98 SetWindowPos(
NULL, rct.left, rct.top, rct.Width(), rct.Height(), SWP_SHOWWINDOW);
102 int h = (
mode == GUIS) ? (rct.Width() - 8) / 1.333333
f : rct.Height() - 8;
103 wndPreview.SetWindowPos(
NULL, 4, 4, rct.Width() - 8, h, SWP_SHOWWINDOW);
111 CDialog::OnSize(nType, cx, cy);
118 int h = rect.Height() - 8;
119 wndPreview.SetWindowPos(
NULL, 4, 4, rect.Width() - 8, h, SWP_SHOWWINDOW);
130 CDialog::OnDestroy();
139 memset( &ev, 0,
sizeof( ev ) );
146 CDialog::OnLButtonDown(nFlags, point);
155 memset( &ev, 0,
sizeof( ev ) );
162 CDialog::OnLButtonUp(nFlags, point);
173 memset( &ev, 0,
sizeof( ev ) );
175 ev.
evValue = (point.x / rct.Width()) * 640.0
f;
176 ev.
evValue2 = (point.y / rct.Height()) * 480.0
f;
180 CDialog::OnMouseMove(nFlags, point);
virtual void setMedia(const char *name)
CONST PIXELFORMATDESCRIPTOR UINT
virtual const idMaterial * FindMaterial(const char *name, bool makeDefault=true)=0
bool LoadRegistryInfo(const char *pszName, void *pvBuf, long *plSize)
idUserInterfaceManager * uiManager
virtual const char * HandleEvent(const sysEvent_t *event, int time, bool *updateVisuals=NULL)=0
virtual idUserInterface * FindGui(const char *qpath, bool autoLoad=false, bool needUnique=false, bool forceUnique=false)=0
bool SaveRegistryInfo(const char *pszName, void *pvBuf, long lSize)
idDeclManager * declManager
void SetGui(const char *_gui) const