29 #include "../../idlib/precompiled.h"
39 static char THIS_FILE[] = __FILE__;
47 static bool g_bFindActive =
true;
79 CDialog::DoDataExchange(pDX);
104 FindReplaceTextures( m_strFind, m_strReplace, ( m_bSelectedOnly !=
FALSE ), ( m_bForce !=
FALSE ) );
119 if (g_dlgFind.GetSafeHwnd() ==
NULL || IsWindow(g_dlgFind.GetSafeHwnd()) ==
FALSE)
122 g_dlgFind.ShowWindow(SW_SHOW);
126 g_dlgFind.ShowWindow(SW_SHOW);
129 LONG lSize =
sizeof(rct);
131 g_dlgFind.SetWindowPos(
NULL, rct.left, rct.top, 0,0, SWP_NOSIZE | SWP_SHOWWINDOW);
137 return (g_dlgFind.GetSafeHwnd() ==
NULL || ::IsWindowVisible(g_dlgFind.GetSafeHwnd()) ==
FALSE) ?
false :
true;
142 g_dlgFind.UpdateData(
TRUE);
146 g_dlgFind.UpdateData(
FALSE);
152 g_dlgFind.UpdateData(
TRUE);
156 g_dlgFind.UpdateData(
FALSE);
171 return CDialog::DestroyWindow();
176 g_bFindActive =
true;
181 g_bFindActive =
false;
CFindTextureDlg & g_dlgFind
CFindTextureDlg g_TexFindDlg
virtual BOOL DestroyWindow()
afx_msg void OnSetfocusEditReplace()
#define IDC_CHECK_SELECTED
bool LoadRegistryInfo(const char *pszName, void *pvBuf, long *plSize)
bool SaveRegistryInfo(const char *pszName, void *pvBuf, long lSize)
static void setReplaceStr(const char *p)
#define IDD_DIALOG_FINDREPLACE
afx_msg void OnSetfocusEditFind()
static void setFindStr(const char *p)
static void updateTextures(const char *p)
virtual void DoDataExchange(CDataExchange *pDX)
CFindTextureDlg(CWnd *pParent=NULL)