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

C / C++ / MFC

 
QuestionHow can I affect the result of GetClientRect? Pin
Dimitris Vikeloudas18-Jan-05 7:17
Dimitris Vikeloudas18-Jan-05 7:17 
AnswerRe: How can I affect the result of GetClientRect? Pin
HurricaneFlossie18-Jan-05 8:28
HurricaneFlossie18-Jan-05 8:28 
AnswerRe: How can I affect the result of GetClientRect? Pin
Shog918-Jan-05 11:32
sitebuilderShog918-Jan-05 11:32 
GeneralSubclassing ListBox so as to provide functionality of both single selection and multiple selection list box Pin
Close Network18-Jan-05 6:58
Close Network18-Jan-05 6:58 
GeneralRe: Subclassing ListBox so as to provide functionality of both single selection and multiple selection list box Pin
David Crow18-Jan-05 7:07
David Crow18-Jan-05 7:07 
GeneralRe: Subclassing ListBox so as to provide functionality of both single selection and multiple selection list box Pin
Close Network18-Jan-05 13:05
Close Network18-Jan-05 13:05 
GeneralRe: Subclassing ListBox so as to provide functionality of both single selection and multiple selection list box Pin
David Crow19-Jan-05 2:52
David Crow19-Jan-05 2:52 
GeneralRe: Subclassing ListBox so as to provide functionality of both single selection and multiple selection list box Pin
HurricaneFlossie18-Jan-05 7:32
HurricaneFlossie18-Jan-05 7:32 
I do that in a dialog I use when sometimes I need to limit the user to one selection. In OnInitDialog, I just add this code based on a parameter which is set by the calling code.

if (m_bSingleSelection)
m_lbxSymbols.ModifyStyle(0, LVS_SINGLESEL);
else
m_lbxSymbols.ModifyStyle(LVS_SINGLESEL, 0);

This will turn multiselect on and off. Set the original style in the resource editor to multiselect.

Some people see things that are and ask, Why? Some people dream of things that never were and ask, Why not? Some people have to go to work and don't have time for all that ...
Author: George Carlin


GeneralPerformance Graph... Pin
utkumanyaksalak18-Jan-05 6:56
utkumanyaksalak18-Jan-05 6:56 
QuestionHow to Detect Presence of a Scrollbar Pin
HurricaneFlossie18-Jan-05 5:54
HurricaneFlossie18-Jan-05 5:54 
AnswerRe: How to Detect Presence of a Scrollbar Pin
Tom Wright18-Jan-05 10:35
Tom Wright18-Jan-05 10:35 
GeneralRe: How to Detect Presence of a Scrollbar Pin
HurricaneFlossie18-Jan-05 11:01
HurricaneFlossie18-Jan-05 11:01 
AnswerRe: How to Detect Presence of a Scrollbar Pin
Shog918-Jan-05 10:59
sitebuilderShog918-Jan-05 10:59 
GeneralRe: How to Detect Presence of a Scrollbar Pin
HurricaneFlossie18-Jan-05 11:28
HurricaneFlossie18-Jan-05 11:28 
GeneralRe: How to Detect Presence of a Scrollbar Pin
Tom Wright18-Jan-05 12:38
Tom Wright18-Jan-05 12:38 
GeneralAuto left click Pin
Raylan18-Jan-05 4:36
Raylan18-Jan-05 4:36 
GeneralRe: Auto left click Pin
Blake Miller18-Jan-05 4:44
Blake Miller18-Jan-05 4:44 
GeneralRe: Auto left click Pin
User 665818-Jan-05 6:18
User 665818-Jan-05 6:18 
GeneralRe: Auto left click Pin
Shog918-Jan-05 11:11
sitebuilderShog918-Jan-05 11:11 
Generalsoftware protection Pin
includeh1018-Jan-05 4:17
includeh1018-Jan-05 4:17 
GeneralRe: software protection Pin
Tom Wright18-Jan-05 7:22
Tom Wright18-Jan-05 7:22 
GeneralRe: software protection Pin
includeh1018-Jan-05 18:38
includeh1018-Jan-05 18:38 
GeneralHyperlinks into afxcore.rtf Pin
José Luis Sogorb18-Jan-05 4:10
José Luis Sogorb18-Jan-05 4:10 
GeneralMFC manipulating data Pin
hugPW18-Jan-05 1:33
hugPW18-Jan-05 1:33 
GeneralRe: MFC manipulating data Pin
Selvam R18-Jan-05 2:28
professionalSelvam R18-Jan-05 2:28 

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.