🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #5075

Setting focus onto WS_CHILD type window

#5075
From: Pawel Tatera
Date: Tue, 08 Nov 2005 20:57
26 lines
1685 bytes
Hi.

I have a problem and can't handle it ;(
My question is how to move the focus from the parent window, defined as
(WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN) into a child window with style
defined as (WS_CHILD | WS_CLIPSIBLINGS | WS_CAPTION | WS_VISIBLE
|WS_CONTROLPARENT)?

I'd like to mention here I tried to create the child window in two ways:
a) by calling CreateWindowEx() ,
b) by calling CreateDialog() created from resource,

In both cases the created window looks the same way but I can't "walk" from
the main app window onto it using a TAB key.

(I was also trying to add WS_EX_CONTROLPARENT but without effect.)
I need a pair of windows (not MDI) that clip within a client area of the
main app window.

What do I need to type into a window procedure to make it possible?

Can someone point me the wright way?


Thanks in advance.
PawelT
Technical Details
Message-ID: <4371121c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,f21ed145e3c5197a,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Pawel Tatera" <paweltatera@pa80.chodziez.sdi.tpnet.pl>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Setting focus onto WS_CHILD type window
Date: Tue, 8 Nov 2005 21:57:20 +0100
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 217.97.16.80
Message-ID: <4371121c@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1131483676 217.97.16.80 (8 Nov 2005 13:01:16 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail