Click here to Skip to main content
15,888,968 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Redraw the full screen? Pin
douglasjordan1-Oct-05 8:15
douglasjordan1-Oct-05 8:15 
GeneralRe: Redraw the full screen? Pin
Rage_bla1-Oct-05 11:13
Rage_bla1-Oct-05 11:13 
Questionhow to Insert BLOB images into Oracle Databse using ADO Pin
snprani1-Oct-05 3:29
snprani1-Oct-05 3:29 
QuestionMy windows aren't displayed in the taskbar Pin
Axonn Echysttas1-Oct-05 2:54
Axonn Echysttas1-Oct-05 2:54 
AnswerRe: My windows aren't displayed in the taskbar Pin
mark novak1-Oct-05 3:28
mark novak1-Oct-05 3:28 
GeneralRe: My windows aren't displayed in the taskbar Pin
Axonn Echysttas1-Oct-05 4:16
Axonn Echysttas1-Oct-05 4:16 
QuestionUNICODE STRING IN one col of LISTCTRL Pin
Jetli Jerry1-Oct-05 2:41
Jetli Jerry1-Oct-05 2:41 
AnswerRe: UNICODE STRING IN one col of LISTCTRL Pin
mark novak1-Oct-05 12:58
mark novak1-Oct-05 12:58 
This is tricky but you can actually mix unicode and ansi windows within an Application. When you define _UNICODE all the macros get mapped their *W functions. So SendMessage becomes SendMessageW, etc. Windows converts between unicode and ansi between windows your behalf so that if you call SetWindowText from an ansi program to a unicode program, the recieving program will get unicode from the ansi that the sender sent.

Windows tells if a window is unicode or not by how it was created. So RegisterClassA would be an window procedure expecting ansi and RegisterClassW excepts unicode. You can change this by calling SetWindowLongPtrW and passing GCLP_WNDPROC with a new WndProc. Make sure to end your new WndProc with CallWindowProcA because the original accepts ansi. This will however make the entire control unicode.

If your really want to save every character you can and only want that column's strings in Unicode you can try a combination of LVS_OWNERDATA and LVS_OWNERDRAWFIXED to manage your own strings and drawing.
GeneralRe: UNICODE STRING IN one col of LISTCTRL Pin
Jetli Jerry3-Oct-05 3:53
Jetli Jerry3-Oct-05 3:53 
GeneralRe: UNICODE STRING IN one col of LISTCTRL Pin
mark novak3-Oct-05 4:11
mark novak3-Oct-05 4:11 
GeneralRe: UNICODE STRING IN one col of LISTCTRL Pin
Jetli Jerry3-Oct-05 20:15
Jetli Jerry3-Oct-05 20:15 
QuestionCganging Dialog Box Color Pin
progvc1-Oct-05 2:26
progvc1-Oct-05 2:26 
AnswerRe: Cganging Dialog Box Color Pin
Jetli Jerry1-Oct-05 2:33
Jetli Jerry1-Oct-05 2:33 
GeneralRe: Cganging Dialog Box Color Pin
Jörgen Sigvardsson1-Oct-05 14:03
Jörgen Sigvardsson1-Oct-05 14:03 
AnswerRe: Cganging Dialog Box Color Pin
ThatsAlok2-Oct-05 18:50
ThatsAlok2-Oct-05 18:50 
GeneralRe: Cganging Dialog Box Color Pin
Anonymous3-Oct-05 0:19
Anonymous3-Oct-05 0:19 
GeneralRe: Cganging Dialog Box Color Pin
progvc3-Oct-05 0:27
progvc3-Oct-05 0:27 
QuestionCString... PLS help Pin
benjnp1-Oct-05 1:23
benjnp1-Oct-05 1:23 
AnswerRe: CString... PLS help Pin
khan++1-Oct-05 1:42
khan++1-Oct-05 1:42 
GeneralRe: CString... PLS help Pin
benjnp1-Oct-05 10:16
benjnp1-Oct-05 10:16 
AnswerRe: CString... PLS help Pin
benjnp1-Oct-05 10:24
benjnp1-Oct-05 10:24 
QuestionInserting varchar value into Oracle DB using ADO Pin
snprani1-Oct-05 0:59
snprani1-Oct-05 0:59 
Questionsafe version of strstr Pin
Chintoo7231-Oct-05 0:43
Chintoo7231-Oct-05 0:43 
AnswerRe: safe version of strstr Pin
Jose Lamas Rios1-Oct-05 13:28
Jose Lamas Rios1-Oct-05 13:28 
GeneralRe: safe version of strstr Pin
Chintoo7231-Oct-05 14:47
Chintoo7231-Oct-05 14:47 

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.