Click here to Skip to main content
16,011,611 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Existing Project including problem Pin
Nibu babu thomas11-Oct-07 20:57
Nibu babu thomas11-Oct-07 20:57 
GeneralRe: Existing Project including problem Pin
ashishbhatt11-Oct-07 21:40
ashishbhatt11-Oct-07 21:40 
GeneralRe: Existing Project including problem Pin
ashishbhatt11-Oct-07 22:40
ashishbhatt11-Oct-07 22:40 
GeneralRe: Existing Project including problem Pin
Nibu babu thomas11-Oct-07 22:50
Nibu babu thomas11-Oct-07 22:50 
GeneralRe: Existing Project including problem Pin
ashishbhatt11-Oct-07 23:26
ashishbhatt11-Oct-07 23:26 
AnswerRe: Existing Project including problem Pin
jhwurmbach11-Oct-07 21:54
jhwurmbach11-Oct-07 21:54 
GeneralRe: Existing Project including problem Pin
ashishbhatt11-Oct-07 22:06
ashishbhatt11-Oct-07 22:06 
QuestionClistBox owner draw not display Pin
s196675m11-Oct-07 18:47
s196675m11-Oct-07 18:47 
I have a very simple owner drawn CListBox. I just wrote some code in the DrawItem function for some basic drawing.

By clicking a button in a dialog box, this owner drawn list box will be created and will display.
It works fine when I set the dialog window as its parent window. It shows perfectly within dialog box. When I change the parent window to the desktop, it does not display. sometime I saw the window frame appears in the upper left desktop corner very briefly and dissappear and also I saw a new icon apprear in my task (as a sign of new window created.)
<br />
void COwnerdrawDlg::OnButton2() <br />
{<br />
	// TODO: Add your control notification handler code here<br />
	testlistbox = new CListPopUp;<br />
	CRect rect(0,0,0,0);<br />
	testlistbox = new CListPopUp;<br />
<br />
	testlistbox->Create(LBS_OWNERDRAWFIXED     |WS_CHILD | WS_VISIBLE |WS_CLIPCHILDREN   |WS_OVERLAPPED     | WS_BORDER ,rect,GetDesktopWindow(),1);<br />
//	testlistbox->CreateEx(WS_EX_LEFT | WS_EX_LTRREADING |WS_EX_TOPMOST,NULL,NULL, WS_CHILD | WS_VISIBLE |WS_CLIPCHILDREN   |WS_OVERLAPPED  | WS_BORDER  | LBS_OWNERDRAWFIXED,CRect(0, 0, 0, 0),GetDesktopWindow(),1,NULL);<br />
	<br />
	testlistbox->AddString("This is test item 1");<br />
	testlistbox->AddString("This is test item 2");<br />
	testlistbox->AddString("This is test item 3");<br />
	testlistbox->AddString("This is test item 4");<br />
<br />
	testlistbox->MoveWindow(10,10,200,200);<br />
<br />
	<br />
}<br />

Is there anything problem with style setting. I tried with different combination but no luck.

Can anybody find any problem here?
Thank you



msc
QuestionHow to lay some Text Edit Controls in a Scroll View Pin
today4220011-Oct-07 16:27
today4220011-Oct-07 16:27 
AnswerRe: How to lay some Text Edit Controls in a Scroll View Pin
Karismatic11-Oct-07 19:25
Karismatic11-Oct-07 19:25 
QuestionVector Assertion Failure. Pin
Michael10111-Oct-07 13:37
Michael10111-Oct-07 13:37 
AnswerRe: Vector Assertion Failure. Pin
User 58385211-Oct-07 17:38
User 58385211-Oct-07 17:38 
GeneralRe: Vector Assertion Failure. Pin
Michael10111-Oct-07 17:55
Michael10111-Oct-07 17:55 
GeneralRe: Vector Assertion Failure. Pin
User 58385211-Oct-07 18:13
User 58385211-Oct-07 18:13 
GeneralRe: Vector Assertion Failure. Pin
Michael10111-Oct-07 18:22
Michael10111-Oct-07 18:22 
GeneralRe: Vector Assertion Failure. Pin
Michael10111-Oct-07 18:29
Michael10111-Oct-07 18:29 
GeneralRe: Vector Assertion Failure. Pin
User 58385211-Oct-07 18:29
User 58385211-Oct-07 18:29 
GeneralRe: Vector Assertion Failure. Pin
Michael10111-Oct-07 18:42
Michael10111-Oct-07 18:42 
AnswerRe: Vector Assertion Failure. Pin
jhwurmbach11-Oct-07 21:51
jhwurmbach11-Oct-07 21:51 
QuestionRe: Vector Assertion Failure. Pin
David Crow12-Oct-07 2:46
David Crow12-Oct-07 2:46 
Questionconvert double to unsigned short Pin
l_d11-Oct-07 9:43
l_d11-Oct-07 9:43 
AnswerRe: convert double to unsigned short Pin
led mike11-Oct-07 10:12
led mike11-Oct-07 10:12 
JokeRe: convert double to unsigned short Pin
Mark Salsbery11-Oct-07 13:21
Mark Salsbery11-Oct-07 13:21 
AnswerRe: convert double to unsigned short Pin
Stephen Hewitt11-Oct-07 17:50
Stephen Hewitt11-Oct-07 17:50 
AnswerRe: convert double to unsigned short Pin
Nelek11-Oct-07 20:01
protectorNelek11-Oct-07 20:01 

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.