Click here to Skip to main content
15,901,001 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: error that is occuring while executing the project Pin
David Crow31-Mar-09 3:53
David Crow31-Mar-09 3:53 
QuestionHelp with Mouse Button and counter Pin
Member 23626231-Mar-09 1:33
Member 23626231-Mar-09 1:33 
AnswerRe: Help with Mouse Button and counter Pin
Rajesh R Subramanian31-Mar-09 1:37
professionalRajesh R Subramanian31-Mar-09 1:37 
AnswerRe: Help with Mouse Button and counter Pin
Cedric Moonen31-Mar-09 1:40
Cedric Moonen31-Mar-09 1:40 
GeneralRe: Help with Mouse Button and counter Pin
Rajesh R Subramanian31-Mar-09 2:31
professionalRajesh R Subramanian31-Mar-09 2:31 
Joke[OT] Re: Help with Mouse Button and counter Pin
David Crow31-Mar-09 3:26
David Crow31-Mar-09 3:26 
GeneralRe: Help with Mouse Button and counter Pin
Luc Pattyn31-Mar-09 5:09
sitebuilderLuc Pattyn31-Mar-09 5:09 
GeneralRe: Help with Mouse Button and counter Pin
Rajesh R Subramanian31-Mar-09 20:56
professionalRajesh R Subramanian31-Mar-09 20:56 
GeneralRe: Help with Mouse Button and counter Pin
Member 23626231-Mar-09 4:06
Member 23626231-Mar-09 4:06 
GeneralRe: Help with Mouse Button and counter Pin
Luc Pattyn31-Mar-09 5:12
sitebuilderLuc Pattyn31-Mar-09 5:12 
AnswerRe: Help with Mouse Button and counter Pin
Iain Clarke, Warrior Programmer31-Mar-09 1:46
Iain Clarke, Warrior Programmer31-Mar-09 1:46 
GeneralRe: Help with Mouse Button and counter Pin
Member 2362621-Apr-09 3:06
Member 2362621-Apr-09 3:06 
Questionfatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h></windows.h> Pin
Le@rner30-Mar-09 23:41
Le@rner30-Mar-09 23:41 
AnswerRe: fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include Pin
Stuart Dootson31-Mar-09 0:07
professionalStuart Dootson31-Mar-09 0:07 
GeneralRe: fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include Pin
Le@rner31-Mar-09 0:51
Le@rner31-Mar-09 0:51 
GeneralRe: fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include Pin
Stuart Dootson31-Mar-09 0:57
professionalStuart Dootson31-Mar-09 0:57 
GeneralRe: fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include Pin
Le@rner31-Mar-09 0:59
Le@rner31-Mar-09 0:59 
GeneralRe: fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include Pin
Stuart Dootson31-Mar-09 1:06
professionalStuart Dootson31-Mar-09 1:06 
GeneralRe: fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include Pin
Rajesh R Subramanian31-Mar-09 2:34
professionalRajesh R Subramanian31-Mar-09 2:34 
QuestionHow to create a listbox in win32 with checkbox style Pin
nbugalia30-Mar-09 22:52
nbugalia30-Mar-09 22:52 
AnswerRe: How to create a listbox in win32 with checkbox style Pin
Iain Clarke, Warrior Programmer30-Mar-09 23:14
Iain Clarke, Warrior Programmer30-Mar-09 23:14 
There is no easy way. There is no "check" style for a listbox - there's an MFC class which does clever things for you.

Have a look at the code for CCheckListBox, and you'll see it actually does owner draw for the listbox. I can't remember how it stores the check state - either as item data, or an internal map.

So, you'll have to learn how to do owner draw in Win32 (just a case of setting the right styles and responding to a couple of messages) and implement the functionality yourself.

If I were you, I'd grab large sections of the work from CCheckListBox - but you'll still have quite a bit of effort to do.

Good luck!

Iain.

In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!

GeneralRe: How to create a listbox in win32 with checkbox style Pin
nbugalia30-Mar-09 23:40
nbugalia30-Mar-09 23:40 
GeneralRe: How to create a listbox in win32 with checkbox style Pin
Stephen Hewitt30-Mar-09 23:50
Stephen Hewitt30-Mar-09 23:50 
QuestionRe: How to create a listbox in win32 with checkbox style Pin
David Crow31-Mar-09 3:33
David Crow31-Mar-09 3:33 
Questionreading html file in c++/vc++ Pin
siddunelogi30-Mar-09 22:41
siddunelogi30-Mar-09 22:41 

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.