I would like to create a dialog box which gives the user the possibility to find a text that has been written in a box. If you look in your notepad.exe on Windows and head to the 'Search'-menu-entry, you will see the box I would like to create. Of course, FINDREPLACE and FindText(...) is able to show such a dialog box but this dialog box has the old windows style of Windows 95 (i guess). Let's check it out, this is the notepad.exe FindText-DialogBox:
and this one has been created with C++ and the FINDREPLACE-stuff:
FINDREPLACE fr;
ZeroMemory(&fr, sizeof(fr));
fr.lStructSize = sizeof(fr);
fr.hwndOwner = hwndOwner;
fr.lpstrFindWhat = szFindWhat;
fr.wFindWhatLen = 80;
fr.Flags = FR_DOWN;
FindTextA(&fr);
Do you know how to create a dialog box which has the modern windows style? I think it has something to do with templates. But I don't know how to create a template and refer with fr.hInstance and fr.lpTemplateName to it.