Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalis this possible Pin
Anil4-May-01 2:16
Anil4-May-01 2:16 
GeneralRe: is this possible Pin
Christian Graus4-May-01 2:28
protectorChristian Graus4-May-01 2:28 
Generalwon't display to screen Pin
3-May-01 17:44
suss3-May-01 17:44 
GeneralRe: won't display to screen Pin
Masaaki Onishi3-May-01 18:01
Masaaki Onishi3-May-01 18:01 
GeneralRe: won't display to screen Pin
Christian Graus3-May-01 20:23
protectorChristian Graus3-May-01 20:23 
GeneralCListCtrl and selected rows in a dialog Pin
Peter Jones3-May-01 14:54
Peter Jones3-May-01 14:54 
GeneralRe: CListCtrl and selected rows in a dialog Pin
Nick Blumhardt3-May-01 16:53
Nick Blumhardt3-May-01 16:53 
GeneralRe: CListCtrl and selected rows in a dialog Pin
Peter Jones3-May-01 18:37
Peter Jones3-May-01 18:37 
Thanks, that pointed me in the right direction. It doesn't quite work that way, so I need to do something like this:

CMyDialog:OnInitDialog...

CRect rcWin;
m_ListCtrl.GetWindowRect(&rcWin);
ScreenToClient(&rcWin);
DWORD nStyle = m_ListCtrl.GetStyle();
UINT nID = ::GetWindowLong(m_ListCtrl.m_hWnd,GWL_ID);
long nExStyle = m_ListCtrl.GetExtendedStyle();
m_ListCtrl.DestroyWindow();
m_ListCtrl.Create(nStyle | WS_BORDER | LVS_SHOWSELALWAYS, rcWin, this, nID);
m_ListCtrl.SetExtendedStyle(nExStyle | WS_EX_WINDOWEDGE);

Still haven't figured out how to get the standard 3-d border on the listcontrol. Tried all sorts of WS_ and WS_EX_ but it doesn't seem to go. May have to leave it that way.

Peter
GeneralRe: CListCtrl and selected rows in a dialog Pin
Tomasz Sowinski3-May-01 23:54
Tomasz Sowinski3-May-01 23:54 
GeneralRe: CListCtrl and selected rows in a dialog Pin
Peter Jones4-May-01 3:18
Peter Jones4-May-01 3:18 
GeneralDB_NUMERIC Pin
Nick Blumhardt3-May-01 14:19
Nick Blumhardt3-May-01 14:19 
GeneralRe: DB_NUMERIC Pin
Nick Blumhardt3-May-01 16:49
Nick Blumhardt3-May-01 16:49 
GeneralMulti-threaded exception Pin
3-May-01 13:16
suss3-May-01 13:16 
GeneralRe: Multi-threaded exception Pin
4-May-01 4:48
suss4-May-01 4:48 
QuestionMessages? Pin
XKent3-May-01 11:55
XKent3-May-01 11:55 
AnswerRe: Messages? Pin
3-May-01 17:47
suss3-May-01 17:47 
GeneralToolbar Button Invisible Pin
3-May-01 8:44
suss3-May-01 8:44 
GeneralSending windows messages for socket activity Pin
3-May-01 7:40
suss3-May-01 7:40 
GeneralRe: You need the good book about Socket Pin
Masaaki Onishi3-May-01 17:49
Masaaki Onishi3-May-01 17:49 
Generalbuttons have icon and caption (as "START") Pin
3-May-01 7:12
suss3-May-01 7:12 
GeneralRe: buttons have icon and caption (as Pin
Davide Calabro3-May-01 7:36
Davide Calabro3-May-01 7:36 
GeneralRe: buttons have icon and caption (as Pin
3-May-01 8:13
suss3-May-01 8:13 
GeneralRe: buttons have icon and caption (as Pin
Davide Calabro3-May-01 20:51
Davide Calabro3-May-01 20:51 
GeneralBitmap question Pin
3-May-01 6:52
suss3-May-01 6:52 
GeneralRe: Bitmap question Pin
Christian Graus3-May-01 13:20
protectorChristian Graus3-May-01 13:20 

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.