Click here to Skip to main content
15,893,564 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralResizing controls in MFC Pin
Rafael Fernández López31-Dec-03 5:43
Rafael Fernández López31-Dec-03 5:43 
GeneralRe: Resizing controls in MFC Pin
Michael Dunn31-Dec-03 7:30
sitebuilderMichael Dunn31-Dec-03 7:30 
GeneralChange the selection style of a listbox on the fly Pin
shultas31-Dec-03 4:44
shultas31-Dec-03 4:44 
GeneralRe: Change the selection style of a listbox on the fly Pin
valikac31-Dec-03 5:31
valikac31-Dec-03 5:31 
GeneralRe: Change the selection style of a listbox on the fly Pin
Michael Dunn31-Dec-03 7:34
sitebuilderMichael Dunn31-Dec-03 7:34 
GeneralRe: Change the selection style of a listbox on the fly Pin
shultas31-Dec-03 11:11
shultas31-Dec-03 11:11 
GeneralRe: Change the selection style of a listbox on the fly Pin
Ravi Bhavnani31-Dec-03 19:40
professionalRavi Bhavnani31-Dec-03 19:40 
GeneralRe: Change the selection style of a listbox on the fly Pin
Michael Dunn31-Dec-03 20:16
sitebuilderMichael Dunn31-Dec-03 20:16 
Close, CWnd::ModifyStyle() is the function to use (assuming you're using MFC which it looks like you are)
// Change to no selection
m_ListBox.ModifyStyle ( LBS_MULTIPLESEL | LBS_NOSEL, LBS_NOSEL );
// Change to multiple selection
m_ListBox.ModifyStyle ( LBS_MULTIPLESEL | LBS_NOSEL, LBS_MULTIPLESEL );
// Change to single selection
m_ListBox.ModifyStyle ( LBS_MULTIPLESEL | LBS_NOSEL, 0 );



--Mike--
Ericahist | CP SearchBar v2.0.2 | Homepage | 1ClickPicGrabber New v2.0! | RightClick-Encrypt
Pinky, are you pondering what I'm pondering?
I think so Brain, but if we shaved our heads, we'd look like weasels!

GeneralChange Background color of a word in CRichEditCtrl control Pin
BazM31-Dec-03 3:08
BazM31-Dec-03 3:08 
GeneralRe: Change Background color of a word in CRichEditCtrl control Pin
Selvam R31-Dec-03 4:54
professionalSelvam R31-Dec-03 4:54 
GeneralRe: Change Background color of a word in CRichEditCtrl control Pin
BazM31-Dec-03 7:57
BazM31-Dec-03 7:57 
GeneralWindows Clipboard Pin
impeham31-Dec-03 2:19
impeham31-Dec-03 2:19 
GeneralRe: Windows Clipboard Pin
valikac31-Dec-03 5:34
valikac31-Dec-03 5:34 
GeneralNeed help with Dos App Pin
RedDragon2k31-Dec-03 2:08
RedDragon2k31-Dec-03 2:08 
GeneralRe: Need help with Dos App Pin
Selvam R31-Dec-03 2:18
professionalSelvam R31-Dec-03 2:18 
GeneralRe: Need help with Dos App Pin
RedDragon2k31-Dec-03 2:20
RedDragon2k31-Dec-03 2:20 
GeneralRe: Need help with Dos App Pin
Hauptman(n)31-Dec-03 8:42
Hauptman(n)31-Dec-03 8:42 
Generalvirtual printer driver Pin
SHOJO31-Dec-03 2:05
SHOJO31-Dec-03 2:05 
QuestionHow to bypass login window? Pin
SiddharthAtw31-Dec-03 0:11
SiddharthAtw31-Dec-03 0:11 
AnswerRe: How to bypass login window? Pin
Monty231-Dec-03 0:21
Monty231-Dec-03 0:21 
GeneralRe: How to bypass login window? Pin
1-Jan-04 18:32
suss1-Jan-04 18:32 
GeneralRe: How to bypass login window? Pin
Monty21-Jan-04 21:02
Monty21-Jan-04 21:02 
QuestionHow to enumerate all users from Windows? Pin
Butnariu30-Dec-03 23:42
Butnariu30-Dec-03 23:42 
AnswerRe: How to enumerate all users from Windows? Pin
valikac31-Dec-03 5:36
valikac31-Dec-03 5:36 
GeneralVC++ : linking problems Pin
Vincent Sim30-Dec-03 21:40
Vincent Sim30-Dec-03 21:40 

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.