DialogBox mit verschiedenen Inhalten



  • Ich habe eine übliche DialogBox zur Anzeige einer ListBox aus einer temporären Tabelle oder einer Datei. Ich möchte jetzt der nur einen DialogProc mitteilen, was sie darstellen soll.


  • Mod

    Dafür ist doch nciht die DialogProc verantwortlich sondern Dein Aufruf für den Dialog, also DialogBox(Param) und das entsprechende Template!

    Was soll es für einen Vorteil haben nur eine DialogProc zu haben?
    Der Vorteil ist ja gerade, das jeder Dialog seine eigene hat.



  • Es geht wohl eher darum ob eine Datei oder n array (temporäre tabelle??) dargestellt werden soll denke ich.

    Machbar ist das mit dem Parameter den man der DlgProc übergeben kann

    INT_PTR WINAPI DialogBoxParam(
    __in_opt HINSTANCE hInstance,
    __in LPCTSTR lpTemplateName,
    __in_opt HWND hWndParent,
    __in_opt DLGPROC lpDialogFunc,
    __in LPARAM dwInitParam
    );

    dwInitParam [in]
    LPARAM

    The value to pass to the dialog box in the lParam parameter of the WM_INITDIALOG message

    http://msdn.microsoft.com/en-us/library/ms645465%28v=vs.85%29.aspx



  • Danke livinskull!


Log in to reply