Click here to Skip to main content
15,915,062 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Another question to threads Pin
includeh1018-Jan-05 4:02
includeh1018-Jan-05 4:02 
QuestionHow change the backgound Color of Dialog Form Pin
phijophlip17-Jan-05 21:58
phijophlip17-Jan-05 21:58 
AnswerRe: How change the backgound Color of Dialog Form Pin
Aamir Butt17-Jan-05 23:08
Aamir Butt17-Jan-05 23:08 
AnswerIn Conjunction With Mr Bhatt Pin
ThatsAlok18-Jan-05 0:41
ThatsAlok18-Jan-05 0:41 
GeneralRe: In Conjunction With Mr Bhatt Pin
Aamir Butt18-Jan-05 1:07
Aamir Butt18-Jan-05 1:07 
GeneralRe: In Conjunction With Mr Bhatt Pin
ThatsAlok18-Jan-05 6:45
ThatsAlok18-Jan-05 6:45 
GeneralRe: In Conjunction With Mr Bhatt Pin
Aamir Butt18-Jan-05 19:19
Aamir Butt18-Jan-05 19:19 
AnswerRe: How change the backgound Color of Dialog Form Pin
Aamir Butt18-Jan-05 1:05
Aamir Butt18-Jan-05 1:05 
I have seen the code u sent to me through email. Normally its not a good idea to contact individual person coz if u ask question here, other people can get benefit of it as well.

Well, the problem in that code is that the place where u have checked

if(pWnd->GetDlgCtrlID() == IDD_BGCOLOR_DIALOG)


replace it simply with
if(pWnd == this)


Well, the reason is that you want to change the background color of dialog and GetDlgCtrlID returns the IDs of controls on the dialog not of dialog itself. You can check it simply by the if condition I have written above.



Found on Bash.org

I'm going to become rich and famous after i invent a device that allows you to stab people in the face over the internet

My Articles
QuestionService description??? Pin
rdhamija17-Jan-05 21:32
rdhamija17-Jan-05 21:32 
AnswerRe: Service description??? Pin
22491717-Jan-05 23:15
22491717-Jan-05 23:15 
GeneralRe: Service description??? Pin
rdhamija17-Jan-05 23:24
rdhamija17-Jan-05 23:24 
QuestionHow to create a new web browser object from an existing object sharing instance ? Pin
Yariv17-Jan-05 21:00
Yariv17-Jan-05 21:00 
GeneralRegular Expressions Pin
Amit Mulay17-Jan-05 20:33
Amit Mulay17-Jan-05 20:33 
GeneralRe: Regular Expressions Pin
User 665817-Jan-05 21:00
User 665817-Jan-05 21:00 
GeneralDetermine text file or Binary file Pin
mjvalan17-Jan-05 20:25
mjvalan17-Jan-05 20:25 
GeneralRe: Determine text file or Binary file Pin
basementman18-Jan-05 4:18
basementman18-Jan-05 4:18 
GeneralRe: Determine text file or Binary file Pin
David Crow18-Jan-05 4:21
David Crow18-Jan-05 4:21 
GeneralRe: Determine text file or Binary file Pin
digwizfox18-Jan-05 8:22
digwizfox18-Jan-05 8:22 
GeneralCannot open include file: 'Iphlpapi.h': No such file or directory Pin
vc-programmer-17-Jan-05 20:25
vc-programmer-17-Jan-05 20:25 
GeneralRe: Cannot open include file: 'Iphlpapi.h': No such file or directory Pin
Aamir Butt17-Jan-05 23:12
Aamir Butt17-Jan-05 23:12 
GeneralRe: Cannot open include file: 'Iphlpapi.h': No such file or directory Pin
Antony M Kancidrowski18-Jan-05 2:18
Antony M Kancidrowski18-Jan-05 2:18 
GeneralRe: Cannot open include file: 'Iphlpapi.h': No such file or directory Pin
Selvam R18-Jan-05 2:57
professionalSelvam R18-Jan-05 2:57 
GeneralStreaming Media Player Pin
dkmorris199917-Jan-05 19:03
dkmorris199917-Jan-05 19:03 
GeneralRe: Streaming Media Player Pin
Jetli Jerry18-Jan-05 0:32
Jetli Jerry18-Jan-05 0:32 
QuestionHow to create C++ DLL in Visual Studio.Net 2003 Pin
webdevelopex17-Jan-05 19:02
webdevelopex17-Jan-05 19:02 

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.