Hi! I have a question. In dialog box (main window) i have 2 buttons. When i click on 'About' i see about box. When i get back from this into main window, how to focus again on edit box? Thank you Greetz
Posted on 2001-02-07 10:43:00 by xxx
SetFocus :) Mirno
Posted on 2001-02-07 11:11:00 by Mirno
hi i know that, but the question is where in the code? ... if ax==aboutid invoke messagebox, ... ... give me the example thx
Posted on 2001-02-07 11:38:00 by xxx
Ok :


if ax==aboutid
    invoke messagebox, ...

    invoke GetDlgItem, hWnd, editid
    ;eax now has the handle of the edit box

    invoke SetFocus, eax
.endif ;or else or whatever

Its something like that anyway (I've got no docs with me so its what I remember (which isn't a lot) :) ) Mirno
Posted on 2001-02-07 11:50:00 by Mirno
thx man i solve the problem greetz
Posted on 2001-02-10 07:16:00 by xxx