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

C / C++ / MFC

 
QuestionRe: File stream reading PinPopular
CPallini19-Aug-10 23:55
mveCPallini19-Aug-10 23:55 
Questiononlick event of command button is not called Pin
ganesh.dp19-Aug-10 21:55
ganesh.dp19-Aug-10 21:55 
AnswerRe: onlick event of command button is not called Pin
CPallini19-Aug-10 23:57
mveCPallini19-Aug-10 23:57 
AnswerRe: onlick event of command button is not called Pin
norish21-Aug-10 13:58
norish21-Aug-10 13:58 
QuestionHow can we create Unlimited number of controls at runtime? Pin
rahul.kulshreshtha19-Aug-10 20:26
rahul.kulshreshtha19-Aug-10 20:26 
AnswerRe: How can we create Unlimited number of controls at runtime? Pin
Cedric Moonen19-Aug-10 20:45
Cedric Moonen19-Aug-10 20:45 
GeneralRe: How can we create Unlimited number of controls at runtime? Pin
rahul.kulshreshtha19-Aug-10 21:18
rahul.kulshreshtha19-Aug-10 21:18 
GeneralRe: How can we create Unlimited number of controls at runtime? Pin
Emilio Garavaglia19-Aug-10 22:14
Emilio Garavaglia19-Aug-10 22:14 
Yes ... that works.
About scrolling, that's nothing more that handling WM_VSCROLL and reposition the check-boxes (MoveWindow / SetWindowPos) accordingly.

But consider that your design may be not as good as it seems: as the number of controls grows, the dispatch time for the messages also grow and so the repositioning (you must be very smart about the hiding / showing / moving).
Try thinking to a list-control (CListControl) mimicking the checkboxes by changing the item's state-icons.

2 bugs found.
> recompile ...
65534 bugs found.
D'Oh! | :doh:


GeneralRe: How can we create Unlimited number of controls at runtime? Pin
Niklas L19-Aug-10 22:36
Niklas L19-Aug-10 22:36 
GeneralRe: How can we create Unlimited number of controls at runtime? Pin
rahul.kulshreshtha19-Aug-10 22:43
rahul.kulshreshtha19-Aug-10 22:43 
GeneralRe: How can we create Unlimited number of controls at runtime? Pin
Emilio Garavaglia20-Aug-10 1:42
Emilio Garavaglia20-Aug-10 1:42 
GeneralRe: How can we create Unlimited number of controls at runtime? Pin
Niklas L20-Aug-10 2:02
Niklas L20-Aug-10 2:02 
AnswerRe: How can we create Unlimited number of controls at runtime? Pin
Niklas L19-Aug-10 22:07
Niklas L19-Aug-10 22:07 
QuestionNM_EVENT is not being called Pin
learningvisualc19-Aug-10 20:23
learningvisualc19-Aug-10 20:23 
QuestionSocket based application and Anti-viruses Pin
rahul.kulshreshtha19-Aug-10 19:59
rahul.kulshreshtha19-Aug-10 19:59 
AnswerRe: Socket based application and Anti-viruses Pin
Richard MacCutchan19-Aug-10 22:41
mveRichard MacCutchan19-Aug-10 22:41 
AnswerRe: Socket based application and Anti-viruses Pin
Moak20-Aug-10 2:37
Moak20-Aug-10 2:37 
AnswerRe: Socket based application and Anti-viruses Pin
CPallini20-Aug-10 3:05
mveCPallini20-Aug-10 3:05 
QuestionComBoBox:SetCurSel & GetCurSel() Pin
Anu_Bala19-Aug-10 18:14
Anu_Bala19-Aug-10 18:14 
AnswerRe: ComBoBox:SetCurSel & GetCurSel() Pin
Cool_Dev19-Aug-10 19:28
Cool_Dev19-Aug-10 19:28 
GeneralRe: ComBoBox:SetCurSel & GetCurSel() Pin
Anu_Bala19-Aug-10 19:31
Anu_Bala19-Aug-10 19:31 
GeneralRe: ComBoBox:SetCurSel & GetCurSel() Pin
Cool_Dev19-Aug-10 20:14
Cool_Dev19-Aug-10 20:14 
GeneralRe: ComBoBox:SetCurSel & GetCurSel() Pin
Anu_Bala19-Aug-10 19:45
Anu_Bala19-Aug-10 19:45 
AnswerRe: ComBoBox:SetCurSel & GetCurSel() Pin
David Crow20-Aug-10 3:07
David Crow20-Aug-10 3:07 
QuestionRetrieve TreeView Selected Item Pin
Fareed Rizkalla19-Aug-10 9:55
Fareed Rizkalla19-Aug-10 9:55 

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.