Hi !

I'm creating a toolbar i.e. like this:

HTML Code:
bar=new CToolBar();
bar->CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP
		| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC, CRect(0, 0, 0, 0),23423);
FloatControlBar(bar,CPoint (400,400));

Next I delete this toolbar i.e. like this:

HTML Code:
delete bar;
All look ok, without one point: GDI objects are still allocate in memory (I can find it in monitor). In create are allocate 8 GDI objects, in delete remove only 2. So 6 are still allocate. In my application I create/delete toolbars often, and this generate a problem.

Do you know how safty remove a toolbar from memory with deallocate this gdi objects ?

Thnx in advance

Olek