caption for the input box

Hi guys,

I try to use the following codes to create a input box to ask for a number:

options = swControlOptions_Visible | swControlOptions_Enabled;

caption =

"Unfold Step Number"; //.LoadString(IDS_PMP_TEXT1_CAPTION);

tip =

"Input the unfold step number";

group1->IAddControl(NUMBER, swControlType_Numberbox, caption, swControlAlign_LeftEdge, options, tip, &control);

control->QueryInterface(

__uuidof(IPropertyManagerPageNumberbox), (void**)&m_step_number);

m_step_number->put_Value(100);

VARIANT_BOOL ok = VARIANT_FALSE;

m_step_number->SetRange2(swNumberBox_UnitlessInteger, 50, 200, ok, 1, 1, 1);

could anyone  please tell me why I don't see the caption   ?

Please see the attached image.   The caption "Unfold Step Number is not seen

best regards

john

SolidworksApi macros