Python MFC: Updating static text in response to events -
i have following python mfc code. have listbox fill values, , when user clicks on values want static text control updated current selection. there 2 problems code. first value in text control updated first time click on listbox. second value lags behind real selected value in listbox, presumably because control handles click after handler code gets called. i'd appreciate either of these issues. an odd thing, (perhaps clue) when mouse-down on 'ok' button move away mouse-up static text updated expect. i've tried redrawwindow(), updatewindow(), showwindow() on both control , dialog, , nothing seems make difference. import win32con pywin.mfc import dialog idc_list = 9000 idc_text = 9001 class chooserdialog(dialog.dialog): def __init__(self): dialogtemplate = [ ["test", (0, 0, 254, 199), win32con.ws_caption | win32con.ds_modalframe, none, (8, "ms sansserif")], [128, "ok", win32con.idok, (197,178,50,14), win3...