Click here to Skip to main content
15,908,673 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Libraries for creating a RIFF Wav file?? Pin
Mahendra_78613-Jun-04 22:56
Mahendra_78613-Jun-04 22:56 
GeneralTCP Clients management Pin
ilgale13-Jun-04 21:50
ilgale13-Jun-04 21:50 
GeneralRe: TCP Clients management Pin
Dudi Avramov13-Jun-04 22:14
Dudi Avramov13-Jun-04 22:14 
GeneralRe: TCP Clients management Pin
ilgale13-Jun-04 23:00
ilgale13-Jun-04 23:00 
GeneralRe: TCP Clients management Pin
David Crow14-Jun-04 3:28
David Crow14-Jun-04 3:28 
General: How to send message to base dialog window from tab page Pin
Rajesh_K_Sharma13-Jun-04 21:49
Rajesh_K_Sharma13-Jun-04 21:49 
GeneralRe: : How to send message to base dialog window from tab page Pin
Deian13-Jun-04 22:16
Deian13-Jun-04 22:16 
QuestionHow to enable/disable Apply Button? Pin
Rajesh_K_Sharma13-Jun-04 21:08
Rajesh_K_Sharma13-Jun-04 21:08 
Hi all,
I made three buttons OK,Cancel and Apply.
I want to add code on apply button so that the basic functionalities works.
Codes have written below. Plz provide me some idea.
void CPreference::OnApply()
{
// TODO: Add your control notification handler code here
((CGeneralSettings*)m_tabMyTabCtrl.m_tabPages[0])->getSettings();


}

void CPreference::OnOk()
{
// TODO: Add your control notification handler code here
extern int tmpchkflag;

((CGeneralSettings*)m_tabMyTabCtrl.m_tabPages[0])->getSettings();

if(tmpchkflag) {
int iReturn = MessageBox("You must restart your computer before new settings will take effect.\nClose all applications and click OK to restart your computer.","EZ HDD Standard: Settings Change",MB_OK|MB_ICONQUESTION);

if (iReturn == IDOK) {
GivePrivilege();
if(!ExitWindowsEx(EWX_REBOOT| EWX_FORCE ,0)) {
MessageBox("Couldn't reboot! Please do it manually.", "EZ-Security Changed Settings", MB_OK);
}
}
CDialog::OnOK();
}

}

void CPreference::OnCancel()
{
// TODO: Add your control notification handler code here
CDisCardChanges dlg;
if(dlg.DoModal() == IDCANCEL)
CDialog::OnCancel();
}


rajesh
AnswerRe: How to enable/disable Apply Button? Pin
toxcct13-Jun-04 22:17
toxcct13-Jun-04 22:17 
Generala problem about MSChart Pin
yingkou13-Jun-04 20:55
yingkou13-Jun-04 20:55 
Generala problem about MSChart Pin
madecheng123456@yahoo.com.cn13-Jun-04 20:54
sussmadecheng123456@yahoo.com.cn13-Jun-04 20:54 
QuestionHow to sort by Item Condition in Amazon web services Pin
Sumit Kapoor13-Jun-04 20:22
Sumit Kapoor13-Jun-04 20:22 
QuestionHow to create Line in SDI Application? Pin
Rajesh_K_Sharma13-Jun-04 18:57
Rajesh_K_Sharma13-Jun-04 18:57 
AnswerRe: How to create Line in SDI Application? Pin
Frank K13-Jun-04 19:36
Frank K13-Jun-04 19:36 
Generalwindow don't get focus but receiving mouse input Pin
uniqueworld13-Jun-04 18:55
uniqueworld13-Jun-04 18:55 
GeneralRe: window don't get focus but receiving mouse input Pin
bikram singh13-Jun-04 19:57
bikram singh13-Jun-04 19:57 
GeneralRe: window don't get focus but receiving mouse input Pin
Michael Dunn13-Jun-04 20:53
sitebuilderMichael Dunn13-Jun-04 20:53 
GeneralRe: window don't get focus but receiving mouse input Pin
bikram singh13-Jun-04 22:10
bikram singh13-Jun-04 22:10 
GeneralFinding the corect view Pin
Poorniselva13-Jun-04 18:34
Poorniselva13-Jun-04 18:34 
GeneralRe: Finding the corect view Pin
Johan Rosengren13-Jun-04 20:49
Johan Rosengren13-Jun-04 20:49 
QuestionHow to list all the files in a folder, CFileFinder not work Pin
pingpongpp13-Jun-04 16:47
pingpongpp13-Jun-04 16:47 
AnswerRe: How to list all the files in a folder, CFileFinder not work Pin
Anthony_Yio13-Jun-04 23:15
Anthony_Yio13-Jun-04 23:15 
AnswerRe: How to list all the files in a folder, CFileFinder not work Pin
Johan Rosengren14-Jun-04 1:04
Johan Rosengren14-Jun-04 1:04 
AnswerRe: How to list all the files in a folder, CFileFinder not work Pin
David Crow14-Jun-04 3:31
David Crow14-Jun-04 3:31 
GeneralSQL Pin
Yulianto.13-Jun-04 16:28
Yulianto.13-Jun-04 16:28 

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.