• ComDlg32 FindText with hook procedure -> dialog stays invisible

    From R.Wieser@address@is.invalid to comp.os.ms-windows.programmer.win32,alt.windows7.general on Fri Mar 6 09:48:10 2026
    From Newsgroup: alt.windows7.general

    Hello all,

    I'm calling ComDlg32's FindTextA function, which works. But after I set its hook procedure the dialog stays invisible.

    I've been going thru the MSDN documentation of the FindText function and the FINDREPLACEA structure and googled both, but I can't find any indication
    that this is a to-be-expected result.

    Question :

    1) Is this a to-be-expected result and am I supposed, in WM_INITDIALOG, to
    do a ShowWindow myself ?

    2) If not, what should I have done/added/changed so that the dialog appears
    ?

    Regards,
    Rudy Wieser


    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From R.Wieser@address@is.invalid to comp.os.ms-windows.programmer.win32,alt.windows7.general on Fri Mar 6 15:13:43 2026
    From Newsgroup: alt.windows7.general


    Hello all,

    I'm calling ComDlg32's FindTextA function, which works.

    As it turns out, not quite. Tabbing does not work, and neither do the "shortcut keys" for the controls (underscored letters in their
    descriptions). :-(

    For a test I called CreateDialog (showing a few of buttons) from inside a DialogBox, an it also refused to tab between the controls.

    MSDN docs regarding CreateDialog tells me that I need to call
    IsDialogMessage, but how am I supposed to do that when the parent is a
    dialog itself ?

    bottom line : how do I use a non-modal CreateDialog from inside a standard DialogBox ?

    Regards,
    Rudy Wieser


    --- Synchronet 3.21d-Linux NewsLink 1.2