Click here to Skip to main content
15,912,897 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Divider between menu, toolbar, etc Pin
Prakash Nadar17-May-04 21:46
Prakash Nadar17-May-04 21:46 
GeneralRe: Divider between menu, toolbar, etc Pin
alex.barylski18-May-04 2:25
alex.barylski18-May-04 2:25 
Generalselected text in a Edit Box Pin
Shuang. Wu17-May-04 21:02
Shuang. Wu17-May-04 21:02 
GeneralRe: selected text in a Edit Box Pin
alex.barylski17-May-04 21:19
alex.barylski17-May-04 21:19 
GeneralRe: selected text in a Edit Box Pin
Shuang. Wu17-May-04 21:43
Shuang. Wu17-May-04 21:43 
GeneralRe: selected text in a Edit Box Pin
alex.barylski18-May-04 2:20
alex.barylski18-May-04 2:20 
GeneralRe: selected text in a Edit Box Pin
David Crow18-May-04 2:27
David Crow18-May-04 2:27 
GeneralTab pages ,, communication problem!! Pin
rohit.dhamija17-May-04 20:55
rohit.dhamija17-May-04 20:55 
Dear All,

I am developing a dialog based application using MFC VC++ Version 6.0 for Windows 2000. The application consists of a TabControl derived from CTabCtrl Class having three tab pages in it. Also, the tabControl has Apply, Cancel , Ok button.

My query is how to communicate between the tabpages data and OK,Apply button ??

Similiar case, like "Display properties" dialog box which appears upon right clicking on the desktop. When we select a background and click on apply or ok button to make the changes, the background color gets changed.

Following is the code to create the tab pages. I have radio buttons in first CGeneralSettings page and I want to do various operation after user selects one of the radio button and clicks OK or APPLY button
///////////////////////////////////
The CMyTabCtrl has following datamember:::::::

class CMyTabCtrl : public CTabCtrl
{

public:
CMyTabCtrl();
CDialog *m_tabPages[3];
int m_tabCurrent;
int m_nNumberOfPages;
...
..};
CMyTabCtrl::CMyTabCtrl()
{
m_tabPages[0]=new CGeneralSettings;
m_tabPages[1]=new CAuthorization;
m_tabPages[2]=new CUnInstallation;

m_nNumberOfPages=3;
}

CMyTabCtrl::~CMyTabCtrl()
{
for(int nCount=0; nCount < m_nNumberOfPages; nCount++){
delete m_tabPages[nCount];
}
}
///////////////////////////


Please feel free to ask further clarifications in this regards,

Regards,
Rohit
GeneralRe: Tab pages ,, communication problem!! Pin
Prakash Nadar17-May-04 22:02
Prakash Nadar17-May-04 22:02 
QuestionHelp with class's ??? Pin
contemptx17-May-04 20:45
contemptx17-May-04 20:45 
AnswerRe: Help with class's ??? Pin
David Crow18-May-04 2:29
David Crow18-May-04 2:29 
Generalchart graph in MFC Pin
nnvidya17-May-04 20:32
nnvidya17-May-04 20:32 
QuestionHow To Use JPG image Pin
balajeedurai17-May-04 20:14
balajeedurai17-May-04 20:14 
AnswerRe: How To Use JPG image Pin
alex.barylski17-May-04 20:26
alex.barylski17-May-04 20:26 
GeneralRe: How To Use JPG image Pin
balajeedurai17-May-04 20:31
balajeedurai17-May-04 20:31 
GeneralRe: How To Use JPG image Pin
alex.barylski17-May-04 21:10
alex.barylski17-May-04 21:10 
GeneralAfxGetModuleState not returning DLL's ModuleState Pin
ohadp17-May-04 19:45
ohadp17-May-04 19:45 
GeneralRe: AfxGetModuleState not returning DLL's ModuleState Pin
Prakash Nadar17-May-04 21:56
Prakash Nadar17-May-04 21:56 
GeneralRe: AfxGetModuleState not returning DLL's ModuleState Pin
ohadp17-May-04 22:00
ohadp17-May-04 22:00 
GeneralRe: AfxGetModuleState not returning DLL's ModuleState Pin
Prakash Nadar17-May-04 22:34
Prakash Nadar17-May-04 22:34 
GeneralRe: AfxGetModuleState not returning DLL's ModuleState Pin
ohadp17-May-04 22:39
ohadp17-May-04 22:39 
GeneralRe: AfxGetModuleState not returning DLL's ModuleState Pin
HENDRIK R17-May-04 23:11
HENDRIK R17-May-04 23:11 
GeneralRe: AfxGetModuleState not returning DLL's ModuleState Pin
ohadp18-May-04 0:56
ohadp18-May-04 0:56 
GeneralRe: AfxGetModuleState not returning DLL's ModuleState Pin
jmkhael18-May-04 1:06
jmkhael18-May-04 1:06 
GeneralRe: AfxGetModuleState not returning DLL's ModuleState Pin
HENDRIK R18-May-04 1:22
HENDRIK R18-May-04 1:22 

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.