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

C / C++ / MFC

 
AnswerRe: How can i STOP this Pin
Rajesh R Subramanian3-Dec-09 2:57
professionalRajesh R Subramanian3-Dec-09 2:57 
GeneralRe: How can i STOP this Pin
Hwewet28-May-10 1:47
Hwewet28-May-10 1:47 
AnswerRe: How can i STOP this Pin
nenfa3-Dec-09 3:41
nenfa3-Dec-09 3:41 
QuestionWPF and VC++ Pin
Anu_Bala3-Dec-09 1:45
Anu_Bala3-Dec-09 1:45 
AnswerRe: WPF and VC++ Pin
Rolf Kristensen3-Dec-09 10:56
Rolf Kristensen3-Dec-09 10:56 
QuestionOwner Draw ListBox not recognising tab commands in strings Pin
maycockt3-Dec-09 1:18
maycockt3-Dec-09 1:18 
QuestionRe: Owner Draw ListBox not recognising tab commands in strings Pin
David Crow3-Dec-09 3:02
David Crow3-Dec-09 3:02 
AnswerRe: Owner Draw ListBox not recognising tab commands in strings Pin
maycockt3-Dec-09 3:32
maycockt3-Dec-09 3:32 
Hi,

I hadn't sent a LB_SETTABSTOPS message, but I had used SetTabStops funtion, which had no effect.

In my OnInitDialog I have tried the following......

<per>
m_plbMyControl = new CCustomListBox();

if(NULL != m_plbMyControl )
{
CRect rList(10, 10, 580, 285);
DWORD dwStyle = LBS_NOTIFY | LBS_OWNERDRAWVARIABLE | LBS_NOINTEGRALHEIGHT | LBS_HASSTRINGS | LBS_USETABSTOPS | WS_BORDER | WS_HSCROLL;

if(TRUE == m_plbMyControl->Create(dwStyle, rList, this, IDC_LIST_CONTROL))
{
//m_plbMyControl->SetTabStops(16);
::SendMessage(m_plbMyControl->m_hWnd, LB_SETTABSTOPS, (WPARAM)1, (LPARAM)16);
}
}


Whereas the SetTabStops call had no effect, the ::SendMessage just gets an unhandled exception.
I am sure the SetTabStops or LB_SETTABSTOPS is the right way to go, I just cant seem to work out how to use it properly!!!

Any further help would be much appreciated.

TIA

Tony
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 
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 

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.