Miksi tämä ei toimi?
Korjaus että koe1:n createsta muutettaisiin testi sanalla "this" ei saa olla ratkaisu. Siis halutaan tabi toimimaan parent windown sisällä.
CEdit *koe1 = new CEdit;
CEdit *koe2 = new CEdit;
CButton *testi = new CButton;
CPaintDC dc(this);
testi->Create(_T("Testi"), WS_CHILD|WS_CLIPCHILDREN|BS_GROUPBOX|WS_VISIBLE|WS_TABSTOP, CRect(1, 1, 170, 170), this, 3000);
koe1->Create(WS_CHILD | WS_VISIBLE|WS_BORDER|WS_TABSTOP, CRect(50, 30, 250, 50), testi, 3001);
koe2->Create(WS_CHILD | WS_VISIBLE|WS_BORDER|WS_TABSTOP, CRect(50, 60, 250, 80), testi, 3002);
Korjaus että koe1:n createsta muutettaisiin testi sanalla "this" ei saa olla ratkaisu. Siis halutaan tabi toimimaan parent windown sisällä.
CEdit *koe1 = new CEdit;
CEdit *koe2 = new CEdit;
CButton *testi = new CButton;
CPaintDC dc(this);
testi->Create(_T("Testi"), WS_CHILD|WS_CLIPCHILDREN|BS_GROUPBOX|WS_VISIBLE|WS_TABSTOP, CRect(1, 1, 170, 170), this, 3000);
koe1->Create(WS_CHILD | WS_VISIBLE|WS_BORDER|WS_TABSTOP, CRect(50, 30, 250, 50), testi, 3001);
koe2->Create(WS_CHILD | WS_VISIBLE|WS_BORDER|WS_TABSTOP, CRect(50, 60, 250, 80), testi, 3002);
Vastaukset 1
Vanhimmat
sisälle, jonka sen pitäisi vaikuttaa.