Hurol Aslan
April 6th, 1999, 02:03 PM
Hello,
In a VC++ database application, I placed a few Masked Edit controls, a DataCombo and a MSHFlexGrid control,
all bound to a ADO Data Control. Only the grid is initally visible; the others popup when a grid cell is to be edited.
I calculate the rectangle that bounds the grid cell and display the appropriate edit control right on the cell,
by using the SetWindowPos function.
The problem is, the DataCombo control always appears where it was placed in the dialog resource, although
the edit controls go where they are supposed to. Does anyone know why the SetWindowPos function doesn't work
for the DataCombo ? I also tried the MoveWindow function, that also didn't work.
Hurol Aslan
In a VC++ database application, I placed a few Masked Edit controls, a DataCombo and a MSHFlexGrid control,
all bound to a ADO Data Control. Only the grid is initally visible; the others popup when a grid cell is to be edited.
I calculate the rectangle that bounds the grid cell and display the appropriate edit control right on the cell,
by using the SetWindowPos function.
The problem is, the DataCombo control always appears where it was placed in the dialog resource, although
the edit controls go where they are supposed to. Does anyone know why the SetWindowPos function doesn't work
for the DataCombo ? I also tried the MoveWindow function, that also didn't work.
Hurol Aslan