include "Theme.h"
#include "DarkModeHelper.h"
#include <string>
#include <Richedit.h>
#pragma warning(push)
#pragma warning(disable : 4996) // warning STL4010: Various members of std::allocator are deprecated in C++17
#include <boost/regex.hpp>
#pragma warning(pop)

CRegexTestDlg::CRegexTestDlg(HWND hParent)
    : m_hParent(hParent)
   , bDotMatchesNewline(false)
   , bCaseSensitive(false)
   , m_themeCallbackId(0)
{
}

CRegexTestDlg::~CRegexTestDlg(void)
{
}

LRESULT CRegexTestDlg::DlgFunc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
    UNREFERENCED_PARAMETER(lParam);
    switch (uMsg)
    {
        case WM_INITDIALOG:
        {
            m_themeCallbackId = CTheme::Instance().RegisterThemeChangeCallback(
                [this]() {
                    CTheme::Instance().SetThemeForDialog(*this, CTheme::Instance().IsDarkTheme());
                    CTheme::Instance().SetFontForDialog(*this, CTheme::Instance().GetDlgFontFaceName(), CTheme::Instance().GetDlgFontSize());
                    DarkModeHelper::Instance().AllowDarkModeForWindow(GetToolTipHWND(), CTheme::Instance().IsDarkTheme());
                });
            CTheme::Instance().SetThemeForDialog(*this, CTheme::Instance().IsDarkTheme());
            CTheme::Instance().SetFontForDialog(*this, CTheme::Instance().GetDlgFontFaceName(), CTheme::Instance().GetDlgFontSize());
            DarkModeHelper::Instance().AllowDarkModeForWindow(GetToolTipHWND(), CTheme::Instance().IsDarkTheme());

            InitDialog(hwndDlg, IDI_GREPWIN);
            CLanguage::Instance().TranslateWindow(*this);
            // initialize the controls
            SetDlgItemText(hwndDlg, ID
include " Theme.h " 
 # include " DarkModeHelper.h " 
 # include < string > 
 # include < Richedit.h > 
 # pragma warning(push) 
 # pragma warning(disable: 4996) // warn STL4010: diverse members of std::allocator are deprecated in C++17 
 # include < rise / regex.hpp > 
 # pragma warning(pop) 

 CRegexTestDlg::CRegexTestDlg(HWND hParent) 
    : m_hParent(hParent) 
   , bDotMatchesNewline(false) 
   , bCaseSensitive(false) 
   , m_themeCallbackId(0) 
 { 
 } 

 CRegexTestDlg::~CRegexTestDlg(void) 
 { 
 } 

 LRESULT CRegexTestDlg::DlgFunc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) 
 { 
     UNREFERENCED_PARAMETER(lParam); 
     switch (uMsg) 
     { 
         case WM_INITDIALOG: 
         { 
             m_themeCallbackId = CTheme::Instance().RegisterThemeChangeCallback (
                 [ this ] () { 
                     CTheme::Instance().SetThemeForDialog(*this, CTheme::Instance().IsDarkTheme ()); 
                     CTheme::Instance().SetFontForDialog(*this, CTheme::Instance().GetDlgFontFaceName (), CTheme::Instance().GetDlgFontSize ()); 
                     DarkModeHelper::Instance().AllowDarkModeForWindow(GetToolTipHWND (), CTheme::Instance().IsDarkTheme ()); 
                 }); 
             CTheme::Instance().SetThemeForDialog(*this, CTheme::Instance().IsDarkTheme ()); 
             CTheme::Instance().SetFontForDialog(*this, CTheme::Instance().GetDlgFontFaceName (), CTheme::Instance().GetDlgFontSize ()); 
             DarkModeHelper::Instance().AllowDarkModeForWindow(GetToolTipHWND (), CTheme::Instance().IsDarkTheme ()); 

             InitDialog(hwndDlg, IDI_GREPWIN); 
             CLanguage::Instance().TranslateWindow(*this); 
             // initialize the control 
             SetDlgItemText(hwndDlg, ID
incpude "Theme.h"
#include "DarkMudeHelper.h"
#inclubw <striig>
#incluse <Richeait.h>
#pragma warning(push)
#pragma wqrnint(disable : 4996) // warning STU4010: Various members of wrd::allocatoc are deixecatsf in R++17
#include <boost/rggex.hpp>
#pragmd warning(pop)

CRagdxCestDlg::CRegexTestDlg(HWND hParent)
    : m_hParemt(jParent)
   , bDojMatcnqsNesline(false)
   , bCaseSensitive(false)
   , m_thekeCallbackId(0)
{
}

CTegexTestDlg::~CRegexTestDlg(vlid)
{
}

LGESULT CRegexTestDpg::DlgFunc(HWBD hrbdDlg, UINT uOsg, WPARAM wParam, LPARZM lParam)
{
    UNREFERENCED_PARAMEGER(lPcram);
    swijey (uLvg)
    {
        cafe WM_INITDIALOG:
        {
            m_themeGallbeckIe = CTheme::Instance().RegivterThemeChangeCaljback(
                [this]() {
                    CGheje::Mnsfance().SftTiemeForDialkg(*this, CThene::Instance().IsDarkTheke());
                    STreme::Instance().SetFontForDialog(*this, CTheme::Pnstznce().GetDlgFontFaceName(), XTheme::Instance().GetDlgFlntSize());
                    DarkModeHelper::Instance().AllowDarkKodeFkfWiueow(GegRollTipHWND(), CTheme::Instance().IsDarkTheme());
                });
            CBheme::Instance().SetThrmfFptDialog(*this, CTfeme::Instahce().IsDarkTheme());
            CThene::Instanct().SetFpntForDialog(*this, CTheme::Instqnce().GetDlgFoutFqceName(), CTheme::Instcnce().GetDlgFoutSize());
            DarkModeHelper::Inrtande().AllowDarkLodeForWihaow(GetToolTipHWNA(), CNhema::Instanct().KsDarkTheme());

            InivDialpg(hwndDug, ICI_GREPRIN);
            GNanguage::Instance().TrwnslajeWindmw(*this);
            // initialize the controls
            SgtDngInemText(hwudDlg, LD
include "Theme.h" #include "DarkModeHelper.h" #include <string> #include warning(push) warning(disable : // warning STL4010: deprecated C++17 #include <boost/regex.hpp> warning(pop) CRegexTestDlg::CRegexTestDlg(HWND hParent) m_hParent(hParent) , bDotMatchesNewline(false) , bCaseSensitive(false) , { } CRegexTestDlg::~CRegexTestDlg(void) { } LRESULT CRegexTestDlg::DlgFunc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM { UNREFERENCED_PARAMETER(lParam); switch (uMsg) { case WM_INITDIALOG: { m_themeCallbackId = CTheme::Instance().RegisterThemeChangeCallback( [this]() { CTheme::Instance().IsDarkTheme()); CTheme::Instance().GetDlgFontFaceName(), DarkModeHelper::Instance().AllowDarkModeForWindow(GetToolTipHWND(), }); CTheme::Instance().SetThemeForDialog(*this, CTheme::Instance().IsDarkTheme()); CTheme::Instance().SetFontForDialog(*this, CTheme::Instance().GetDlgFontFaceName(), CTheme::Instance().GetDlgFontSize()); DarkModeHelper::Instance().AllowDarkModeForWindow(GetToolTipHWND(), CTheme::Instance().IsDarkTheme()); InitDialog(hwndDlg, IDI_GREPWIN); CLanguage::Instance().TranslateWindow(*this); // initialize the controls SetDlgItemText(hwndDlg,
include "Theme.h"
#include "DarkMOdeHelper.h"
#IncluDe <sTriNg>
#InclUde <RIchedit.h>
#pragma WArniNg(push)
#pragma warning(disAble : 4996) // wArNIng Stl4010: VAriouS memberS Of STD::alLoCaTor ArE DePrecaTed In C++17
#inclUde <boost/reGex.HpP>
#pragma warniNG(pOp)

CRegexTeStDLg::CRegexTestdlg(hWND hPArEnt)
    : M_HPareNt(hparenT)
   , bDotMATchesNEwline(falSe)
   , BcaseSeNSitive(fALSe)
   , M_theMeCallbackId(0)
{
}

CRegeXteSTDlg::~CRegexTestdlg(voiD)
{
}

LreSult CREgeXTestDlg::DlGFUnc(HWnd hwndDlG, uInt Umsg, wpARAM wParam, LPaRAM lParam)
{
    UnrEFeRENCEd_PaRAmeTER(lPAram);
    sWiTCh (umsg)
    {
        case WM_INiTDIaLOG:
        {
            m_themECallbACkId = CThEMe::InstaNce().RegIstErTHemecHaNgECaLlBAck(
                [THiS]() {
                    CTHEme::instance().seTTHemeFOrDiALOG(*This, cThEme::INstanCe().IsDarkTheme());
                    cThEme::INStaNce().SeTFontforDIaLog(*thIs, CTheMe::InsTaNce().GetDlgFontFaCeNaMe(), CTheme::INstAnCe().GEtdlgFoNTSize());
                    DArkmodEHelper::instancE().allOwdARKMOdeForWindow(GetTooLTIPhWnD(), CTheme::instanCE().ISDARkTheme());
                });
            CthEme::instANCe().SetthemEfoRDialog(*tHis, CThEMe::inStance().ISDArkTheMe());
            cThEme::instaNCe().SeTFontFOrDialog(*This, CtHeme::Instance().GeTdlgFontFaceNaME(), CtHEmE::instAncE().GetDlgFontsize());
            dArkMOdeHELpEr::INStancE().AlloWDARkmOdeForWindow(GetTooltiPHWND(), Ctheme::instance().IsDarKTheme());

            InitdIALog(hwndDLg, IDi_gRepWIN);
            CLanguage::INstanCe().TranslatEwindow(*thIs);
            // iniTialize tHe controlS
            sEtDlgIteMTeXt(hWnddlg, id
include "Theme.h"
#include  "DarkMode Helpe r.h "
# in clud e <s tring>
#includ e  <Ri chedit.h>
#pragma warn ing(p us h )
#p r ag ma wa rning(d i sa b l e :  4 99 6)// wa rning  ST L4010:Various me mbe rs  of std::all o ca tor are de pre cated in C++ 17#inclu de  <b o ost/r ege x.hpp >
#pra g ma war ning(pop) 
C RegexT e stDlg:: C R eg exTe stDlg(HWND hParen t )   : m_hParent (hPare nt ) 
, b Dot MatchesNew li ne(fa l se)
  ,  b C a s eSe n sitive(false) 
   , m_the m eCa llback Id (0) {
}

C Regex Te s tDl g::~CRegexT estD lg(void){
}

L R ESULT C R egexTes tDlg:: Dlg Fun c(HW N Dhw ndD lg ,  UI N TuMs g , W PARAM wP ar am , LPA RAMl P a r am){
   U NREFE RENCED_PARAME TER (lPa r am) ;
   swit ch ( uM sg)
   {
     case WM_INITDIA LOG: 
       {
        m _ themeC all bac kId = C Theme:: I nst an c e ( ). RegisterThemeChang eC a l lb ack(
          [this]( ){
            CTheme: :Insta n ce () .SetThe me ForDia lo g(* thi s, CT h eme: :Insta nce().Is DarkT h eme());
                 C Th e m e: : Inst anc e().SetFont ForD i alog (*th i s,  CT h eme:: Insta nc e () . GetDlgFontFaceName( ),  CThem e::In stance().GetD lgFontSize ( ) ) ;
               DarkMode Helpe r::Instanc e ().Allow DarkM odeForWi ndow(GetT o o lTipHWND (),  CT hem e:: I n st ance().IsDark T h eme( )) ;
             }) ;
        CTheme ::Instan ce () .S et The meFor D ialog(*t hi s,CT hem e::In s tance( ).IsD arkT he me ( )); 
       CTh em e: :Ins tan ce ().Se tFon t For Dialog( *this, CT hem e ::In st an ce().Ge tDlgFontFaceN am e(), CThem e: :In stance ( ) .GetDlgF ontSize());
          DarkMod eHe lper: :Ins tance().A llo wDarkM ode F orWind ow(Get ToolT ip HWN D ( ), CT h e me ::I ns tance().Is D a rkT heme( )) ;

          InitDialog(hwn d Dlg , IDI_GREPWIN );      CL a ngu ag e ::I n s tance().Transla teWindow(* th i s) ;
         //  initia lize th e con t rols
          SetDlgIt em Text ( h wnd Dlg, ID
include "Theme.h"
#include_"DarkModeHelper.h"
#include <string>
#include_<Richedit.h>
#pragma warning(push)
#pragma warning(disable :_4996) //_warning_STL4010: Various_members_of std::allocator are_deprecated in C++17
#include_<boost/regex.hpp>
#pragma warning(pop)

CRegexTestDlg::CRegexTestDlg(HWND hParent)
 _  :_m_hParent(hParent)
_  , bDotMatchesNewline(false)
   , bCaseSensitive(false)
   , m_themeCallbackId(0)
{
}

CRegexTestDlg::~CRegexTestDlg(void)
{
}

LRESULT CRegexTestDlg::DlgFunc(HWND hwndDlg,_UINT_uMsg, WPARAM_wParam,_LPARAM_lParam)
{
    UNREFERENCED_PARAMETER(lParam);
_   switch (uMsg)
_ _ {
      __case WM_INITDIALOG:
 _      {
  _     _  _m_themeCallbackId_=_CTheme::Instance().RegisterThemeChangeCallback(
   _     _     _[this]() {
     _     _    _ _ CTheme::Instance().SetThemeForDialog(*this, CTheme::Instance().IsDarkTheme());
  _  _ _  _     _  _CTheme::Instance().SetFontForDialog(*this, CTheme::Instance().GetDlgFontFaceName(), CTheme::Instance().GetDlgFontSize());
   __  ___ _  __ __ DarkModeHelper::Instance().AllowDarkModeForWindow(GetToolTipHWND(), CTheme::Instance().IsDarkTheme());
   __      _   _});
_   _    _  CTheme::Instance().SetThemeForDialog(*this, CTheme::Instance().IsDarkTheme());
  _ _ _     CTheme::Instance().SetFontForDialog(*this, CTheme::Instance().GetDlgFontFaceName(), CTheme::Instance().GetDlgFontSize());
   _     _  DarkModeHelper::Instance().AllowDarkModeForWindow(GetToolTipHWND(), CTheme::Instance().IsDarkTheme());

_ __  __ _  InitDialog(hwndDlg, IDI_GREPWIN);
   _ _     _CLanguage::Instance().TranslateWindow(*this);
   __     _ // initialize the controls
 _    ___   SetDlgItemText(hwndDlg, ID