I have come across a problem when i created a buttons at preview pane using resource editor (visual c++). The problem is when i try to move the width of preview pane the button don't adjust themselves to be in preview pane according to the movement of the preview pane width. (i mean when i reduce the width of preview pane they go outside the border of the preview pane in right side)..
Could any one please give me the solution to come out of this problem ??? I also want to tell you that i already have one photo in the dialog box which already adjust itself to be in preview pane according to the moving preview pane (I mean photo don't create any problem just the buttons i created go outside the border of the preview pane) ..may be because for the photo we have SS_CENTERIMAGE which keeps the image in center but nothing like this for buttons
Please give me the solution i am doing in Visual C++ using createdialog using resource editor..
When a window size is changed that window receives the WM_SIZE message, with the new size. Handle that message in your preview pane, calculate new button positions, and use MoveWindow or SetWindowPos to move the buttons.