Home > Archive > Smartphone Developer Forum > May 2005 > IsDialogMessage & Control Focus
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
IsDialogMessage & Control Focus
|
|
|
| Hi all,
I'm having a problem with dialog-like navigation in a normal window.
I created a parent window using the CreateWindo() function (and not
using DialogBox function or other similar function). Then added several
child controls to it, again using CreateWindow() - 2 check boxes, 1
label and 1 combobox, in this order. All controls are subclassed and
have the WS_TABSTOP style. I added IsDialogMessage to the parent
window's message loop as well.
Apparently navigation doesn't work. I checked and found out that
IsDialogMessage() actually processes the message (WM_KEYDOWN,
VK_UP/VK_DOWN), but still, the focus remains on the top control.
Any idea why it doesn't work? I'd hate to write my own navigation
mechanism as I'd like to keep my code standarized as possible.
Thanks!
Yudi.
| |
|
| Yudi wrote:
> Hi all,
>
> I'm having a problem with dialog-like navigation in a normal window.
>
> I created a parent window using the CreateWindo() function (and not
> using DialogBox function or other similar function). Then added several
> child controls to it, again using CreateWindow() - 2 check boxes, 1
> label and 1 combobox, in this order. All controls are subclassed and
> have the WS_TABSTOP style. I added IsDialogMessage to the parent
> window's message loop as well.
>
> Apparently navigation doesn't work. I checked and found out that
> IsDialogMessage() actually processes the message (WM_KEYDOWN,
> VK_UP/VK_DOWN), but still, the focus remains on the top control.
>
> Any idea why it doesn't work? I'd hate to write my own navigation
> mechanism as I'd like to keep my code standarized as possible.
>
> Thanks!
> Yudi.
>
don't suppose you could post the code you are using for the creates?
riki
main(){printf("%d != %d, why?", sizeof('"')["'"],(sizeof('"'))["]\"\0["]);}
By Night:
ThemeChanger for Smartphone : http://homepages.inspire.net.nz/~gambit/
AbstractStart for Smartphone :
http://homepages.inspire.net.nz/~gambit/AbstractStart/
By Day: http://www.EmbeddedFusion.com
|
|
|
|
|