CFanatic

Go Back   CFanatic > Programming > MFC Programming

Join CFanatic Forum Now

Enable/Disable an Edit Control box in Property Page topic posted under MFC Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 04-01-2008, 11:37 AM
Junior Member
 
Join Date: Apr 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
taklubaba is on a distinguished road
| More
Enable/Disable an Edit Control box in Property Page

Hi,

I am working on Property Page of a filter.
I have added a ListBox in the property page to hold items for video
resolution.
Among the items in the list, there is one item called User Defined.

I am trying to get a functionality where in, if I select User Defined
in the ListBox, this selection will enable 2
Edit Control boxes so that the user can fill in Height and Width.

Now, if I deselect User Defined and select some other item in the
ListBox, the Edit Control boxes should be disabled.

How do I do it programatically in the OnReceiveMessage() function?

Please let me know.
I have been trying to enable the disabled Edit Control Boxes using,

SendDlgItemMessage(hList, IDC_RATE3, WM_ENABLE, (WPARAM)TRUE, 0);

But this does not work.
Thanks,
Taklu
Reply With Quote
  #2  
Old 08-18-2008, 05:32 AM
Junior Member
 
Join Date: Jun 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
jencas is on a distinguished road
| More
Re: Enable/Disable an Edit Control box in Property Page

Create member variables for the controls and use CWnd::EnableWindow()
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Control of a Property Page in a Wizard Larry A Mill Sr MFC Programming 6 07-31-2008 11:02 AM
32K limitation of edit box munawwar firoz Win32 Programming 2 07-12-2008 09:20 AM
how to create edit box control in MDI application Interesttolearn MFC Programming 1 07-08-2008 02:25 AM
How to enable the xp theme in my application without manifest file...? basawaraj MFC Programming 1 05-22-2008 05:09 AM
How to enable the xp theme in my application without manifest file...? basawaraj Win32 Programming 1 05-22-2008 05:09 AM

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 03:31 PM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board