Click here to Skip to main content
16,005,120 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Com Ports Pin
usyra4221-Apr-08 21:58
usyra4221-Apr-08 21:58 
Generalspeed up serial communication Pin
vijay.victory21-Apr-08 19:21
vijay.victory21-Apr-08 19:21 
GeneralRe: speed up serial communication Pin
Cedric Moonen21-Apr-08 20:21
Cedric Moonen21-Apr-08 20:21 
GeneralRe: speed up serial communication Pin
vijay.victory22-Apr-08 0:07
vijay.victory22-Apr-08 0:07 
GeneralRe: speed up serial communication Pin
CPallini21-Apr-08 21:45
mveCPallini21-Apr-08 21:45 
GeneralRe: speed up serial communication Pin
Randor 21-Apr-08 22:53
professional Randor 21-Apr-08 22:53 
GeneralRe: speed up serial communication Pin
vijay.victory22-Apr-08 0:16
vijay.victory22-Apr-08 0:16 
QuestionCan we draw a child window outside the client area of the parent? Pin
misha_grewal21-Apr-08 19:12
misha_grewal21-Apr-08 19:12 
I am trying to implement "intellisearch" combo box like we have in IE.

I create a separate list box and draw it below combo box when user starts typing in something.
The Combo box has to be a parent of this list box. When I draw the list box using the Create method, it offcourse will try to draw the list box inside the client area of the combo box, and fails to do so.

Can we draw a child window outside the client area of the parent?

<br />
<br />
bool CAutoCompComboBox::CreateListBox()<br />
{<br />
   CRect clientRect(-1, -1, -1, -1);<br />
<br />
   GetClientRect(&clientRect);  <br />
  // adjust the height to be like a list box<br />
<br />
BOOL bRet =  _listFilter.Create(WS_CHILD | WS_VISIBLE | <br />
                                   WS_VSCROLL | LBS_STANDARD,<br />
                                   clientRect, this, 1);<br />
<br />
// the window is created but not seen here. <br />
// however this code works, obviously because I give the parent as <br />
// dialog box which is holding the AutoCompComboBox control. <br />
<br />
_listFilter.Create(WS_CHILD | WS_VISIBLE | <br />
                                   WS_VSCROLL | LBS_STANDARD,<br />
                                   clientRect, GetParent(), 1);<br />
<br />
<br />




Thanks in advance..

Misha

Evil triumphs when good people sit quiet...

AnswerRe: Can we draw a child window outside the client area of the parent? Pin
Rajkumar R21-Apr-08 19:20
Rajkumar R21-Apr-08 19:20 
GeneralRe: Can we draw a child window outside the client area of the parent? Pin
misha_grewal21-Apr-08 20:28
misha_grewal21-Apr-08 20:28 
GeneralRe: Can we draw a child window outside the client area of the parent? Pin
Rajkumar R21-Apr-08 20:54
Rajkumar R21-Apr-08 20:54 
GeneralRe: Can we draw a child window outside the client area of the parent? Pin
misha_grewal22-Apr-08 0:07
misha_grewal22-Apr-08 0:07 
QuestionVC++ Doubt Pin
sachinjoseph21-Apr-08 19:00
sachinjoseph21-Apr-08 19:00 
GeneralRe: VC++ Doubt Pin
Hamid_RT21-Apr-08 19:44
Hamid_RT21-Apr-08 19:44 
GeneralSimple Way of Display Images Needed Using Win32 Pin
bobber20521-Apr-08 18:32
bobber20521-Apr-08 18:32 
GeneralRe: Simple Way of Display Images Needed Using Win32 Pin
_AnsHUMAN_ 21-Apr-08 18:41
_AnsHUMAN_ 21-Apr-08 18:41 
GeneralRe: Simple Way of Display Images Needed Using Win32 [modified] Pin
bobber20521-Apr-08 19:02
bobber20521-Apr-08 19:02 
GeneralRe: Simple Way of Display Images Needed Using Win32 Pin
Hamid_RT21-Apr-08 19:45
Hamid_RT21-Apr-08 19:45 
GeneralRe: Simple Way of Display Images Needed Using Win32 Pin
Rajkumar R21-Apr-08 19:59
Rajkumar R21-Apr-08 19:59 
GeneralRe: Simple Way of Display Images Needed Using Win32 Pin
Mark Salsbery21-Apr-08 21:43
Mark Salsbery21-Apr-08 21:43 
GeneralRe: Simple Way of Display Images Needed Using Win32 [modified] Pin
bobber20522-Apr-08 14:44
bobber20522-Apr-08 14:44 
GeneralRe: Simple Way of Display Images Needed Using Win32 Pin
Mark Salsbery22-Apr-08 20:56
Mark Salsbery22-Apr-08 20:56 
Questionplease tell me Pin
liuyajuan21-Apr-08 16:27
liuyajuan21-Apr-08 16:27 
GeneralRe: please tell me Pin
_AnsHUMAN_ 21-Apr-08 18:04
_AnsHUMAN_ 21-Apr-08 18:04 
GeneralRe: please tell me Pin
Hamid_RT21-Apr-08 19:49
Hamid_RT21-Apr-08 19:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.