Click here to Skip to main content

Windows API and WinRT/Metro

    RSS: RSS Feed

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page  Show 
  Refresh
NewsVideos for developers show how you can support Windows 7 features Pinmemberbrucedkyle7:27 16 Nov '09  
QuestionVB.NET app unable to open mdb on Windows 7 Pinmemberdimnim13:46 12 Nov '09  
AnswerRe: VB.NET app unable to open mdb on Windows 7 Pinmemberdimnim2:26 14 Nov '09  
QuestionOverIcon.dll in Vista ? PinmemberMohammad Dayyan5:53 12 Nov '09  
AnswerRe: OverIcon.dll in Vista ? PinmvpLuc Pattyn6:18 12 Nov '09  
GeneralRe: OverIcon.dll in Vista ? PinmemberMohammad Dayyan1:28 14 Nov '09  
QuestionDisplaying multiple lines on listbox ( windows pocked pc programming.) issue. PinmemberMember 20531860:55 10 Nov '09  
Hi,
 
I want to display 2 lines on the list box i am using in my application.
 
Some sample code for accessing the listbox control and setting the test to be displayed.
 
CWindow m_listWindow;
m_listWindow = GetDlgItem(IDC_LIST_FLIGHT);
 
char *pwszTitleDesc = new char[256];
strcpy(pwszTitleDesc, "parminder"
strncat(pwszTitleDesc, "\r\n", strlen("\r\n")));
strncat(pwszTitleDesc, "singh", strlen("singh"));
nIndex = m_listWindow.SendMessage(LB_ADDSTRING, (WPARAM)0, (LPARAM)pwszTitleDesc);
 
Everything is fine except that, instead "\r\n" appears as square boxes on the listbox.
 

 
Regards
Parminder
 
dhesi

AnswerRe: Displaying multiple lines on listbox ( windows pocked pc programming.) issue. PinmemberShameel4:19 24 Nov '09  
QuestionWindows C.E PinmemberS0FTDEV23:36 7 Nov '09  
AnswerRe: Windows C.E PinmemberRichard MacCutchan2:23 8 Nov '09  
GeneralRe: Windows C.E PinmemberS0FTDEV22:22 8 Nov '09  
GeneralRe: Windows C.E PinmemberRichard MacCutchan23:58 8 Nov '09  
AnswerRe: Windows C.E Pinmember Randor 13:13 9 Nov '09  
GeneralRe: Windows C.E PinmemberS0FTDEV1:36 11 Nov '09  
QuestionVS.Net2003 on Windows7 Pinmembermtdeveloper19:24 27 Oct '09  
AnswerRe: VS.Net2003 on Windows7 Pinmember Randor 19:52 27 Oct '09  
AnswerRe: VS.Net2003 on Windows7 PinmemberEdison18854:13 5 Nov '09  
AnswerRe: VS.Net2003 on Windows7 Pinmemberflydk2:56 19 Nov '09  
QuestionWindows explorer always opens new window PinmemberIndivara17:51 26 Oct '09  
AnswerRe: Windows explorer always opens new window Pinmember Randor 18:30 26 Oct '09  
GeneralRe: Windows explorer always opens new window PinmemberIndivara18:34 26 Oct '09  
GeneralRe: Windows explorer always opens new window Pinmember Randor 19:25 26 Oct '09  
GeneralRe: Windows explorer always opens new window PinmemberIndivara19:47 26 Oct '09  
QuestionVisual Studio 2005 and Windows 7 PinmemberEdison18856:28 26 Oct '09  
AnswerRe: Visual Studio 2005 and Windows 7 Pinmember Randor 6:56 26 Oct '09  

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

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


Advertise | Privacy | Mobile
Web01 | 2.5.120210.1 | Last Updated 9 Feb 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid