Click here to Skip to main content
15,900,461 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Part of the code is as below:

CSS
IDD_CONNECTOBJECT_DIALOG DIALOGEX 0, 0, 280, 142
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW
CAPTION "ConnectObject"
FONT 8, "MS Sans Serif"
BEGIN
    CONTROL         "",IDC_OPCDATACTRL2,   //IDC_OPCDATACTRL1
                    "{FECBB6D0-6378-4B3E-A0EC-DCB28655BB55}",WS_TABSTOP,131,
                    112,17,17
    EDITTEXT        IDC_EDIT1,95,54,81,16,ES_AUTOHSCROLL | NOT WS_TABSTOP,
                    WS_EX_RIGHT
    PUSHBUTTON      "Disconnect",IDC_BUTTON1,151,84,61,22
    PUSHBUTTON      "ConnectObject",IDC_BUTTON2,68,84,71,21
    LTEXT           "This example uses the ConnectObject method to setup a subscription read and get the data back in the ValueChanged() event of the OPC data control and then update the text box below.  This is all done programmatically in the code in this example. ",
                    IDC_STATIC,7,7,258,38
END
C++




C#
void CConnectObjectDlg::DoDataExchange(CDataExchange* pDX)
{
    CDialog::DoDataExchange(pDX);
    //{{AFX_DATA_MAP(CConnectObjectDlg)
    DDX_Control(pDX, IDC_EDIT1, m_EditControl);
    DDX_Control(pDX, IDC_OPCDATACTRL2 , m_OPCDataControl);
    //}}AFX_DATA_MAP
}


----------------------------------------------------------------------------

Can anyone kindly explain what is the meaning of IDC_OPCDATACTRL2 in both parts and also what is the meaning of the CONTROL part in the first part written in rc file?

Thanks ahead!
Posted

1 solution

Everything you wanted to know about Dialog Boxes in the RC file

http://msdn.microsoft.com/en-us/library/aa381002(VS.85).aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900