1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
(Dans WndManSaisie.h)
#include "Geodesiecontrolectrl.h" //mon wrapper
CGeodesiecontrolectrl OcxGeoFinal;
CGeodesiecontrolectrl OcxGeoPassage;
*******************************************************
(Dans WndManSaisie.cpp)
int CWndManSaisie::OnCreate(LPVREATESTRUCT lpCreateStruct)
{
...
OcxGeoFinal.Create(S_EMPTY, WS_CHILD | WS_VISIBLE, CRect(CPoint(265,186), CSize(453, 25)),this, OCX_GEO_ID);
OcxGeoFinal.SetTypeReferentiel(GEO);
OcxGeoFinal.SetMode(TRUE);
OcxGeoFinal.ShowWindow(SW_SHOW);
OcxGeoPassage.Create(S_EMPTY, WS_CHILD | WS_VISIBLE,CRect(CPoint(265,390), CSize(453, 20)),this, OCX_GEO_ID);
OcxGeoPassage.SetTypeReferentiel(GEO);
OcxGeoPassage.SetMode(TRUE);
OcxGeoPassage.ShowWindow(SW_SHOW);
...
} |
Partager