ModifyStyle - Fenster aktualisieren



  • Hallo,

    wenn ich in ein CEdit-Feld klicke, ändere ich mit ModifyStyle sein Style. Die Veränderung wird aber erst angezeigt, wenn ich mit dem Cursor das Feld wieder verlasse. Muss ich danach noch eine Funktion aufrufen?

    Habs schon mit RedrawWindow und UpdateWindow versucht, hat aber nicht geklappt.

    Danke und Gruß
    Chris



  • Hi,

    Hab ModifyStyle auch schon verwendet:
    der nFlags Parameter darf nicht NULL sein

    MSDN schrieb:

    If nFlags is nonzero, ModifyStyle calls the Windows API function::SetWindowPos and redraws the window by combining nFlags with the following four preset flags:
    SWP_NOSIZE Retains the current size.

    SWP_NOMOVE Retains the current position.

    SWP_NOZORDER Retains the current Z order.

    SWP_NOACTIVATE Does not activate the window.

    Grüße Rapha


Anmelden zum Antworten