1.I created a window and a child button.Now I want to colour the button.
2.I created a window and a child button.When user presses the button, it should change its position to another desired coordinates.
I'm not using softwares like QT or another but instead I'm using wxDev C++.
Part 1.) I don't know about other programmers, but personally I avoid the default button-types that Windows supplies, making your own button type is often easier than modifying their buttons and it will give your program a unique feel.
Part 2.) Look up SetWindowPos() and MoveWindow() functions, I'm not sure if they will actually resize/move a button, but since a button is a window I don't know why it wouldn't.
You can change the color of most of the standard Win32 controls (Edit, Static, Scrollbar, etc) by handling the appropriate WM_CTLCOLORXXXX message (e.g. WM_CTLCOLOREDIT, WM_CTLCOLORSTATIC) by providing the background brush you want the control to be painted with, and setting the text and text background colors.
Unfortunately, while WM_CTLCOLORBTN exists, it does not support push buttons, only radio buttons and check boxes (which are types of button). So, push buttons, you will need to use the owner draw mechanism (you give the button the style BS_OWNERDRAW and then handle the WM_DRAWITEM message to draw it youself).
This article show how to do owner draw, but of a button with curved edges rather than a colored one.