Click to open or copy the files for the ReBar sample.
This sample is a simple demonstration of implementing a rebar common control in an application. This example creates a rebar control that has two bands. One contains a ComboBox and the other contains a Pushbutton.
The rebar control can be placed on any of the four sides of the parent window by selecting the desired side from the View menu. When the side is changed, the existing rebar control is destroyed and another one is created. The reason for this is that the control statically stores some styles at creation time and they cannot be changed while running.
This sample uses the following keywords:
buildrebar; checkmenuradioitem; createwindowex; defwindowproc; destroywindow; dialogbox; dispatchmessage; donotify; enddialog; get_wm_command_id; getclientrect; getdlgitem; getmessage; getstockobject; getwindowrect; handlecommand; handlemenupopup; imagelist_addicon; imagelist_create; initapplication; initcommoncontrolsex; initinstance; loadbitmap; loadcursor; loadicon; mainwndproc; makeintresource; makelparam; moverebar; movewindow; postquitmessage; registerclass; sendmessage; showwindow; switch; text; translatemessage; updatewindow; winmain; wsprintf; zeromemory