Click here to Skip to main content
15,905,504 members
Home / Discussions / Article Writing
   

Article Writing

 
GeneralCaptalizing 2 substrings in 1 textbox Pin
4-Jun-01 11:55
suss4-Jun-01 11:55 
QuestionAre you good at Web Design? Pin
3-Jun-01 16:23
suss3-Jun-01 16:23 
GeneralODBC Driver development Pin
v_krishnan2-Jun-01 20:00
v_krishnan2-Jun-01 20:00 
GeneralOwner Drawn Tooltips Pin
Mark Keogh1-Jun-01 22:28
Mark Keogh1-Jun-01 22:28 
GeneralRe: Owner Drawn Tooltips Pin
Chris Maunder1-Jun-01 22:57
cofounderChris Maunder1-Jun-01 22:57 
GeneralRe: Owner Drawn Tooltips Pin
Dhandapani Ammasai12-Jun-01 7:39
Dhandapani Ammasai12-Jun-01 7:39 
GeneralDAO example ... Pin
Hadi Rezaee1-Jun-01 17:56
Hadi Rezaee1-Jun-01 17:56 
GeneralOWNERDRAW Listbox help Pin
Neil Lamka1-Jun-01 7:12
Neil Lamka1-Jun-01 7:12 
I have an application that subclasses an LBS_OWNERDRAWFIXED listbox window. When
I subclass the window it seems to break the listbox so that horizontal scrolling
and painting do not work correctly (perhaps other things as well that I have not
gotten to yet. Assuming that it was a problem with my subclass procedure I
reduced it to the following code:

//* The listbox definition in the dialog resource
LISTBOX ID_USERS_LISTBOX, 3, 22, 324, 185, LBS_OWNERDRAWFIXED |
LBS_MULTICOLUMN | LBS_NOINTEGRALHEIGHT | WS_VSCROLL |
WS_HSCROLL | WS_TABSTOP

//* Subclass the listbox earlier in the code....
fpOldListProc = (FARPROC) SetWindowLong(hWndList,
GWL_WNDPROC,
(DWORD)ListProc);

//* Listbox subclass procedure
LRESULT APIENTRY ListProc( HWND hWnd, UINT Message, WORD wParam, LONG lParam)
{
return CallWindowProc((WNDPROC)fpOldListProc, hWnd, Message, wParam, lParam);
}

with the same result. It is worse in Win2000 than in Win/98 but basically the
same kinds of problems are there. In Win2000 the items the space below the
bottom row in the listbox and below and to the right of the last row of items is
not repainted as well as horizontal scrolling not working correctly.

I've tinkered with this for a week and I'm at a loss. Any suggestions or
pointers would be greatly appreciated.

Thanks
Neil


Neil Lamka
neil@meetingworks.com
GeneralRe: OWNERDRAW Listbox help Pin
19-Jun-01 15:40
suss19-Jun-01 15:40 
GeneralRe: OWNERDRAW Listbox help Pin
Neil Lamka11-Jul-01 5:31
Neil Lamka11-Jul-01 5:31 
GeneralError Checking & Control Pin
ben_is31-May-01 12:48
ben_is31-May-01 12:48 
GeneralScript file to shut down server at a certain time daily Pin
30-May-01 19:48
suss30-May-01 19:48 
GeneralRe: Script file to shut down server at a certain time daily Pin
Uwe Keim30-May-01 20:15
sitebuilderUwe Keim30-May-01 20:15 
GeneralRe: Script file to shut down server at a certain time daily Pin
Garth J Lancaster30-May-01 20:23
professionalGarth J Lancaster30-May-01 20:23 
GeneralRe: Script file to shut down server at a certain time daily Pin
1-Jun-01 5:53
suss1-Jun-01 5:53 
GeneralRe: Script file to shut down server at a certain time daily Pin
1-Jun-01 5:53
suss1-Jun-01 5:53 
QuestionAnybody know anything about querying XML? Pin
Matt Philmon29-May-01 12:47
Matt Philmon29-May-01 12:47 
AnswerRe: Anybody know anything about querying XML? Pin
31-May-01 1:45
suss31-May-01 1:45 
AnswerRe: Anybody know anything about querying XML? Pin
Tomasz Sowinski31-May-01 2:07
Tomasz Sowinski31-May-01 2:07 
GeneralRe: Anybody know anything about querying XML? Pin
Patrick Long4-Jun-01 0:01
Patrick Long4-Jun-01 0:01 
QuestionHow to run an application with administrator privileges Pin
Michael Wilharm29-May-01 3:49
Michael Wilharm29-May-01 3:49 
AnswerRe: How to run an application with administrator privileges Pin
Tomasz Sowinski29-May-01 4:08
Tomasz Sowinski29-May-01 4:08 
QuestionHow to disable Internet (or block all ports)? Pin
Sasha Djurovic28-May-01 13:50
Sasha Djurovic28-May-01 13:50 
AnswerRe: How to disable Internet (or block all ports)? Pin
TomKat14-Mar-03 16:58
TomKat14-Mar-03 16:58 
GeneralMSI installation package Pin
27-May-01 19:15
suss27-May-01 19:15 

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.