Click here to Skip to main content
15,888,816 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralBurning DVD Pin
sushildaga198413-Mar-08 23:47
sushildaga198413-Mar-08 23:47 
GeneralRe: Burning DVD [modified] Pin
Demian Panello14-Mar-08 2:20
Demian Panello14-Mar-08 2:20 
QuestionHow to Disable OK Button from property sheet. Pin
Ashish Chauhan13-Mar-08 23:44
Ashish Chauhan13-Mar-08 23:44 
AnswerRe: How to Disable OK Button from property sheet. Pin
Rajesh R Subramanian13-Mar-08 23:54
professionalRajesh R Subramanian13-Mar-08 23:54 
GeneralRe: How to Disable OK Button from property sheet. Pin
Ashish Chauhan14-Mar-08 0:26
Ashish Chauhan14-Mar-08 0:26 
QuestionRe: How to Disable OK Button from property sheet. Pin
Rajesh R Subramanian14-Mar-08 1:57
professionalRajesh R Subramanian14-Mar-08 1:57 
GeneralRe: How to Disable OK Button from property sheet. Pin
Ashish Chauhan14-Mar-08 2:08
Ashish Chauhan14-Mar-08 2:08 
AnswerRe: How to Disable OK Button from property sheet. Pin
Rajkumar R14-Mar-08 2:43
Rajkumar R14-Mar-08 2:43 
EnableWindow(GetDlgItem(hPWnd,PSBTN_OK),FALSE);

use IDOK inplace of PSBTN_OK. and should do after the dialog is created say in WM_INITDIALOG handler.


Ashish Chauhan wrote:
But i'm sure hPWnd is Property sheet Handle.

It is not the hPWnd is invalid, since GetDlgItem() returns a invalid handle EnableWindow end up with error.

If you are going for modeless property sheet, you can create your own dialog box layout.
QuestionRe: How to Disable OK Button from property sheet. Pin
Rajesh R Subramanian14-Mar-08 3:26
professionalRajesh R Subramanian14-Mar-08 3:26 
GeneralRe: How to Disable OK Button from property sheet. Pin
Ashish Chauhan14-Mar-08 4:56
Ashish Chauhan14-Mar-08 4:56 
AnswerRe: How to Disable OK Button from property sheet. Pin
Rajesh R Subramanian14-Mar-08 5:58
professionalRajesh R Subramanian14-Mar-08 5:58 
GeneralRe: How to Disable OK Button from property sheet. Pin
Rajkumar R14-Mar-08 6:09
Rajkumar R14-Mar-08 6:09 
GeneralRe: How to Disable OK Button from property sheet. Pin
Ashish Chauhan14-Mar-08 6:51
Ashish Chauhan14-Mar-08 6:51 
AnswerRe: How to Disable OK Button from property sheet. Pin
CPallini13-Mar-08 23:59
mveCPallini13-Mar-08 23:59 
QuestionFolder size in VC++ dialog based application. Pin
sushildaga198413-Mar-08 23:42
sushildaga198413-Mar-08 23:42 
AnswerRe: Folder size in VC++ dialog based application. Pin
Mukesh Kumar14-Mar-08 0:09
Mukesh Kumar14-Mar-08 0:09 
QuestionRe: Folder size in VC++ dialog based application. Pin
David Crow14-Mar-08 3:01
David Crow14-Mar-08 3:01 
GeneralRe: Folder size in VC++ dialog based application. Pin
sushildaga198415-Mar-08 1:41
sushildaga198415-Mar-08 1:41 
GeneralRe: Folder size in VC++ dialog based application. Pin
David Crow15-Mar-08 4:21
David Crow15-Mar-08 4:21 
Generalabout BSTR TYPE variables Pin
savitri13-Mar-08 23:25
savitri13-Mar-08 23:25 
GeneralRe: about BSTR TYPE variables Pin
Rajkumar R13-Mar-08 23:43
Rajkumar R13-Mar-08 23:43 
GeneralRe: about BSTR TYPE variables Pin
CPallini13-Mar-08 23:49
mveCPallini13-Mar-08 23:49 
GeneralRe: about BSTR TYPE variables Pin
savitri14-Mar-08 0:47
savitri14-Mar-08 0:47 
QuestionRe: about BSTR TYPE variables Pin
CPallini14-Mar-08 1:01
mveCPallini14-Mar-08 1:01 
GeneralRe: about BSTR TYPE variables Pin
savitri14-Mar-08 1:14
savitri14-Mar-08 1:14 

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.