Click here to Skip to main content
15,884,472 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Owner Draw ListBox not recognising tab commands in strings Pin
David Crow3-Dec-09 3:39
David Crow3-Dec-09 3:39 
AnswerRe: Owner Draw ListBox not recognising tab commands in strings [modified] Pin
maycockt3-Dec-09 3:57
maycockt3-Dec-09 3:57 
GeneralRe: Owner Draw ListBox not recognising tab commands in strings Pin
David Crow3-Dec-09 4:13
David Crow3-Dec-09 4:13 
GeneralRe: Owner Draw ListBox not recognising tab commands in strings [modified] Pin
maycockt3-Dec-09 4:21
maycockt3-Dec-09 4:21 
GeneralRe: Owner Draw ListBox not recognising tab commands in strings Pin
David Crow3-Dec-09 5:41
David Crow3-Dec-09 5:41 
GeneralRe: Owner Draw ListBox not recognising tab commands in strings Pin
maycockt3-Dec-09 5:48
maycockt3-Dec-09 5:48 
GeneralRe: Owner Draw ListBox not recognising tab commands in strings Pin
David Crow3-Dec-09 5:55
David Crow3-Dec-09 5:55 
GeneralRe: Owner Draw ListBox not recognising tab commands in strings Pin
maycockt3-Dec-09 6:05
maycockt3-Dec-09 6:05 
Having removed the LBS_OWNERDRAWVARIABLE the formatting is using the tabs appropriately, but with that I am back to square 1 of needing to intercept the drawing as I need to have some of the text emboldened.

Do you think then that my style settings must be wrong?

I currently rule out and include in the PreCreateWindow as follows

<per>
// Turn off disallowed styles
cs.style &= ~( LBS_SORT |
LBS_OWNERDRAWFIXED |
LBS_MULTICOLUMN);
// Turn on mandatory styles
cs.style |= ( LBS_NOTIFY |
LBS_HASSTRINGS |
LBS_OWNERDRAWVARIABLE |
LBS_NOINTEGRALHEIGHT |
LBS_USETABSTOPS |
WS_BORDER );


Anything I am missing?

Tony
QuestionRe: Owner Draw ListBox not recognising tab commands in strings Pin
David Crow3-Dec-09 6:22
David Crow3-Dec-09 6:22 
AnswerRe: Owner Draw ListBox not recognising tab commands in strings Pin
maycockt6-Dec-09 20:38
maycockt6-Dec-09 20:38 
GeneralRe: Owner Draw ListBox not recognising tab commands in strings Pin
raymondc05-Dec-09 12:03
raymondc05-Dec-09 12:03 
GeneralRe: Owner Draw ListBox not recognising tab commands in strings Pin
maycockt6-Dec-09 20:41
maycockt6-Dec-09 20:41 
GeneralRe: Owner Draw ListBox not recognising tab commands in strings Pin
raymondc07-Dec-09 4:09
raymondc07-Dec-09 4:09 
QuestionRe: Owner Draw ListBox not recognising tab commands in strings Pin
David Crow3-Dec-09 5:52
David Crow3-Dec-09 5:52 
AnswerRe: Owner Draw ListBox not recognising tab commands in strings Pin
maycockt3-Dec-09 5:56
maycockt3-Dec-09 5:56 
Questionmysql_fetch_field Pin
MsmVc3-Dec-09 0:38
MsmVc3-Dec-09 0:38 
AnswerRe: mysql_fetch_field Pin
includeh103-Dec-09 1:26
includeh103-Dec-09 1:26 
AnswerRe: mysql_fetch_field Pin
Rajesh R Subramanian3-Dec-09 1:26
professionalRajesh R Subramanian3-Dec-09 1:26 
GeneralRe: mysql_fetch_field Pin
MsmVc3-Dec-09 1:30
MsmVc3-Dec-09 1:30 
AnswerRe: mysql_fetch_field Pin
Rajesh R Subramanian3-Dec-09 1:33
professionalRajesh R Subramanian3-Dec-09 1:33 
GeneralRe: mysql_fetch_field Pin
MsmVc3-Dec-09 1:40
MsmVc3-Dec-09 1:40 
GeneralRe: mysql_fetch_field Pin
includeh103-Dec-09 2:10
includeh103-Dec-09 2:10 
GeneralRe: mysql_fetch_field Pin
MsmVc3-Dec-09 17:22
MsmVc3-Dec-09 17:22 
QuestionGetting problem with RegisterShellFileTypes() in MFC Dialog based application. [modified] Pin
vasu_sri3-Dec-09 0:12
vasu_sri3-Dec-09 0:12 
AnswerRe: Getting problem with RegisterShellFileTypes() in MFC Dialog based application. Pin
LunaticFringe3-Dec-09 0:23
LunaticFringe3-Dec-09 0:23 

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.