|
But in explorer it should not be like this?
It mean I can not get the HTREEITEM at time of expanding tree item right?
|
|
|
|
|
You can try casting the pNMHDR into a pointer to NMTREEVIEW structure, where the structure members itemOld and itemNew will be populated with the Old and New states of the item.
modified on Friday, July 11, 2008 7:06 AM
|
|
|
|
|
Varghese_Paul_M wrote: When you expand a node, it has to be selected or it will be selected before it expands or collaps.
No no no
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi all,
I need to change the bitmap of the CbitmapButton on the events GetFocus, LostFocus and also in Clicked event. The problem I am facing is that, when I change the bitmap during GetFocus the bitmap is not loaded properly and when I use a breakpoint and debug the code the bitmap changed correctly. I dont know how to use it.
Also I tried to create a custom class for CBitmapButton and used it. In this I cannot set the bitmap to a particular button.
Please help me.
|
|
|
|
|
I think you are not using method CBitmapButton::LoadBitmaps for associating the images with the bitmap button.
|
|
|
|
|
m_button4.LoadBitmaps(IDB_BITMAP2,IDB_BITMAP1,IDB_BITMAP2,IDB_BITMAP2);
The above is the method I am using. For the focus events, I use like below :
void CdfdgDlg::OnBnKillfocusButton4()
{
m_button4.LoadBitmaps(IDB_BITMAP2,IDB_BITMAP1,IDB_BITMAP3,NULL);
}
void CdfdgDlg::OnBnSetfocusButton4()
{
m_button4.LoadBitmaps(IDB_BITMAP4,IDB_BITMAP5,IDB_BITMAP6,NULL);
}
|
|
|
|
|
The code looks fine. I assume that you have made the button property as "OwnerDraw".
It could be a problem of repainting the client area. Try calling m_button4.UpdateWindow() after calling LoadBitmaps. Ensure that the bitmaps are of correct size, color depth and fits correctly on the button. Also ensure that the method LoadBitmaps returns TRUE.
|
|
|
|
|
Hello Paul,
bool val=m_button4.LoadBitmapsIDB_BITMAP4,IDB_BITMAP4,IDB_BITMAP4,IDB_BITMAP4);
m_button4.SizeToContent();
m_button4.UpdateWindow();
The above is also not working. I studied about Subclassing but I dont know how to implement it. Please advice.
|
|
|
|
|
Is there anybody to help me...
|
|
|
|
|
how to add integers into a listbox
|
|
|
|
|
With MFC:
int iItem = 5;
CString szItem;
szItem.Format(_T("%d"),iItem);
listBox.AddString(szItem);
Plain Win32:
INT iItem = 5;
TCHAR szItem[32];
_stprintf(szItem, _T("%d"), iItem);
SendMessage(hWndListBox, LB_ADDSTRING, 0, (LPARAM) szItem);
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
i have connect ms access with vc++
i know how to get text from ms database
i dont know how get date from database and change its formate
|
|
|
|
|
Regards,
Sandip.
modified on Friday, July 11, 2008 5:31 AM
|
|
|
|
|
Instead you may give link to that post.
|
|
|
|
|
|
Its surprise to see!
I didnt know that the same guy posting this question.
What will be the reason?
|
|
|
|
|
RSAK wrote: I didnt know that the same guy posting this question.
What will be the reason?
autism?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Or DrugZ may be?
|
|
|
|
|
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Chain(W) reaction
|
|
|
|
|
And usual thread hijacking by Carlo & Rajesh. If you wish to join the Thread Hijacking Brigade, please let us know.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
i am using ProEssentials v6 to draw stack bar graph
i want to use blended(gradient) color
when one color change to another
how is that possible plzzzz help me
if any other solution is possible plz tell me
|
|
|
|
|
BTW: Very urgent,plzzzzzzzz.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
am using ProEssentials v6 to draw stack bar graph
i want to use blended(gradient) color
when one color change to another
how is that possible, help me
if any other solution is possible, tell me
|
|
|
|
|
i usee the below code to fill black colour inside an ellipse..
i need to know how to fill the ellipse with different colour.
pDC->SelectStockObject(BLACK_BRUSH);
pDC->Ellipse(CRect(0,0,100,120));
Anu
|
|
|
|