Click here to Skip to main content
15,902,276 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Accessing a web Service from VC++ application Pin
Member 5343578-Jul-04 3:13
Member 5343578-Jul-04 3:13 
GeneralRe: Accessing a web Service from VC++ application Pin
Antti Keskinen8-Jul-04 9:48
Antti Keskinen8-Jul-04 9:48 
QuestionAny suggestions on a parser? Pin
prcarp7-Jul-04 3:16
prcarp7-Jul-04 3:16 
AnswerRe: Any suggestions on a parser? Pin
siggapet7-Jul-04 3:26
siggapet7-Jul-04 3:26 
AnswerRe: Any suggestions on a parser? Pin
palbano7-Jul-04 4:00
palbano7-Jul-04 4:00 
AnswerRe: Any suggestions on a parser? Pin
Andrew Walker7-Jul-04 14:21
Andrew Walker7-Jul-04 14:21 
GeneralRe: Any suggestions on a parser? Pin
prcarp25-Jul-04 20:39
prcarp25-Jul-04 20:39 
QuestionMaking an Edit multiline? Pin
steven117-Jul-04 1:56
steven117-Jul-04 1:56 
Hi,
sounds easy, but it's very complicated...
I want to have a custom drawn TreeView with multiline items. The drawing of the tree works perfect but when the EditBox to edit the items text (TVN_BEGINLABELEDIT you know) is created it is - of course - singlelined.
Now I wanted to make it multiline and therefore I tried to use ModifyStyle but it didn't succeed.
The next approach was to create a CBT-Hook to hook the creation of the Edit and "smuggle" the ES_MULTILINE-Style into the windowstyle but strangely this also didn't succeed. Do you have any suggestions? the CBT-Hook is definitely called (I verified this with TRACE and Spy++).

Here's the HookProc-Code (hTree is the HWND of the tree):

LRESULT CALLBACK HookCreateWindow (int nCode, WPARAM wParam, LPARAM lParam)
{
if (nCode == HCBT_CREATEWND) {
CBT_CREATEWND* pCWnd = (CBT_CREATEWND*) lParam;
if (pCWnd->lpcs->hwndParent == hTree) {
pCWnd->lpcs->style |= ES_MULTILINE;
TRACE("\nEdit_created. HWND: 0x%x", (HWND) wParam);
}
}
return CallNextHookEx(g_hHook, nCode, wParam, lParam);
}

Thanks for your answers!
AnswerRe: Making an Edit multiline? Pin
siggapet7-Jul-04 3:49
siggapet7-Jul-04 3:49 
GeneralRe: Making an Edit multiline? Pin
steven117-Jul-04 6:06
steven117-Jul-04 6:06 
GeneralDifference between thread and fiber on windows Pin
haritadala7-Jul-04 1:46
haritadala7-Jul-04 1:46 
GeneralRe: Difference between thread and fiber on windows Pin
David Crow7-Jul-04 2:35
David Crow7-Jul-04 2:35 
QuestionHow to Detect Invalid Filenames Pin
Steve Thresher7-Jul-04 1:37
Steve Thresher7-Jul-04 1:37 
AnswerRe: How to Detect Invalid Filenames Pin
V.7-Jul-04 1:44
professionalV.7-Jul-04 1:44 
AnswerRe: How to Detect Invalid Filenames Pin
PengFeidu7-Jul-04 2:17
PengFeidu7-Jul-04 2:17 
Generali Have two Question Pls Some one reply Pin
ThatsAlok6-Jul-04 23:55
ThatsAlok6-Jul-04 23:55 
GeneralRe: i Have two Question Pls Some one reply Pin
Abhi Lahare7-Jul-04 0:34
Abhi Lahare7-Jul-04 0:34 
GeneralRe: i Have two Question Pls Some one reply Pin
ThatsAlok7-Jul-04 2:34
ThatsAlok7-Jul-04 2:34 
GeneralRe: i Have two Question Pls Some one reply Pin
David Crow7-Jul-04 2:57
David Crow7-Jul-04 2:57 
GeneralRe: i Have two Question Pls Some one reply Pin
ThatsAlok7-Jul-04 4:29
ThatsAlok7-Jul-04 4:29 
GeneralRe: i Have two Question Pls Some one reply Pin
David Crow7-Jul-04 4:32
David Crow7-Jul-04 4:32 
GeneralRe: i Have two Question Pls Some one reply Pin
Abhi Lahare7-Jul-04 2:58
Abhi Lahare7-Jul-04 2:58 
GeneralRe: i Have two Question Pls Some one reply Pin
ThatsAlok7-Jul-04 4:37
ThatsAlok7-Jul-04 4:37 
Questionhow activex control is created? Pin
Abhi Lahare6-Jul-04 23:43
Abhi Lahare6-Jul-04 23:43 
QuestionHow to Write Installer Pin
Zeeshan Bilal6-Jul-04 23:37
Zeeshan Bilal6-Jul-04 23:37 

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.