Hi all, I have a doubt reagrading DeleteObject(). I created 25 solid brushes in a function and deleted all the brushes in other function. Before creating the brush the GDIObject count was 18 (as per task manager). After Creating 25 brushes the count was 43. Now even after deleting 25 brushes the GDI object count was still 32 instead of 18. Anybody plz tell me the reason.. Plz suggest any good GDI leak tester.
User 3037427
Posts
-
Doubt regarding DeleteObject -
Doubt in VS2005Does VS2005 supprts GDI+ ???
-
retreive data from text box in vc++ 6Map it to some variable (ex: m_edit) While mapping it select long as its type. In the code use the following lines long val; UpdateData(); val=m_edit
-
Doubt regarding the HookHi all, Can any one plz tell me how to set the hook in MFC. Thanks in advance.
-
Spin controlThanx for ur reply:)
-
Spin controlHi all, I have some doubt regarding the spin button control. In Spin button control, how can i know which button (up/dowm arrow button) is clicked? Thanx in advance.
-
CDialogI want to change the back ground of dialog when i move the slider ctrl. That's why i used int color=m_clr.GetPos(); Ths background of the dialog was changing but the controls are not visible.
-
CDialogMy code is: BOOL CSliderDlg::OnEraseBkgnd(CDC* pDC) { if(m_clr.GetPos()!=0) { int color=m_clr.GetPos(); COLORREF clr=RGB(color,color,color); CRect rect; GetClientRect(&rect); pDC->FillSolidRect(&rect,clr); } return CDialog::OnEraseBkgnd(pDC); } I am calling this function from WM_HSCROLL handler. m_clr is the slider ctrl. If there is any mistake in my, let me that mistake. Thanx.:)
-
CDialogSorry, its not working.:(
-
CDialogNo its not working. Thanks for ur reply.:)
-
CDialogBut the background color is not changing. Here is my code: OnPaint() { ............. CSliderApp* app=(CSliderApp*)AfxGetApp(); app->ChangeDialogColor((COLORREF)m_clr.GetPos()); } void CSliderApp::ChangeDialogColor(COLORREF ref) { SetDialogBkColor(ref); } Is there anything wrong:confused:
-
CDialogThe code was working fine. But the controls like edit box etc.. are not visible bcoz of FillSolidRect(). How can i solve this problem :)
-
CDialogBut i want to chage the background depending on the color specified dynamically. I am getting an exception when i post the WM_CTLCOLOR message . Thanks for ur reply,
-
CDialogHow can i change the dialog box background color dynamically.:confused:
-
Doubt regarding the combo boxHow can i make the combo box to drop down automatically?
-
Creating XP themes [modified]how can i do this?
-
Creating XP themes [modified]Hi, I want to apply XP theme to my program . How can i do this? I am using VC++6.0. Thanx in advance. -- modified at 2:33 Thursday 8th June, 2006
-
Moving the textThen how can i do this using GDI.
-
Moving the textSorry Vunic. I am not getting it. I created a splitter window. On the top pane i want to rotate my text(just like as you in any website). Anyhow thanks for ur reply.:)
-
Moving the textI want my text to be moved from left to right and then to left repeatedly. I want to do this without using the thread and without GDI. How can i do this? THanks for ur reply.:)