Click here to Skip to main content
16,011,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: attach an icon to mouse cursor Pin
vikas choudhry9-Dec-08 17:12
vikas choudhry9-Dec-08 17:12 
GeneralRe: attach an icon to mouse cursor Pin
Hamid_RT9-Dec-08 20:49
Hamid_RT9-Dec-08 20:49 
GeneralRe: attach an icon to mouse cursor Pin
vikas choudhry9-Dec-08 21:27
vikas choudhry9-Dec-08 21:27 
GeneralRe: attach an icon to mouse cursor Pin
Hamid_RT10-Dec-08 20:06
Hamid_RT10-Dec-08 20:06 
GeneralRe: attach an icon to mouse cursor Pin
vikas choudhry11-Dec-08 0:00
vikas choudhry11-Dec-08 0:00 
GeneralRe: attach an icon to mouse cursor Pin
Hamid_RT11-Dec-08 2:46
Hamid_RT11-Dec-08 2:46 
QuestionThumbnail dialog problem Pin
Pryabu4-Dec-08 17:25
Pryabu4-Dec-08 17:25 
QuestionThumbnail dialog Problem Pin
Pryabu4-Dec-08 17:17
Pryabu4-Dec-08 17:17 
I have loaded images in a thumbnail dialog and i added background color to thumbnail dialog.But in vertical scroll, Thumbnail dialog is not getting re-painted.can anyone please tell me how to repaint the thumbnail dialog during vertical scroll.

<pre>
CBitmap Background;
CBrush BrushHol;
CSize bitmapSize;

In initdialog

CDC dcMemory;
dcMemory.CreateCompatibleDC(cdc);
CBitmap* pOldbitmap = dcMemory.SelectObject(&Background);
CRect Client;
GetClientRect(Client);
const CSize&amp; sbitmap = bitmapSize;
cdc.BitBlt(0,0,sbitmap.cx,sbitmap.cy,&dcMemory,0,0,SRCPAINT);
dcMemory.SelectObject(pOldbitmap);

in onpaint

CDC dcMemory;
dcMemory.CreateCompatibleDC(cdc);
CBitmap* pOldbitmap = dcMemory.SelectObject(&Background);
CRect Client;
GetClientRect(Client);
const CSize&amp; sbitmap = bitmapSize;
cdc.BitBlt(0,0,sbitmap.cx,sbitmap.cy,&dcMemory,0,0,SRCAND);
dcMemory.SelectObject(Background);

in Vertical scroll

if( Background.m_hObject != NULL )
{
InvalidateRect(Client,TRUE);
}
</pre>
QuestionDBCS problem Pin
David Crow4-Dec-08 9:28
David Crow4-Dec-08 9:28 
AnswerRe: DBCS problem Pin
YoungJin Shin4-Dec-08 20:23
YoungJin Shin4-Dec-08 20:23 
QuestionUsing CMFCStatusBar class How do you Set the Text for a Label(dynamically) Pin
Larry Mills Sr4-Dec-08 3:42
Larry Mills Sr4-Dec-08 3:42 
AnswerRe: Using CMFCStatusBar class How do you Set the Text for a Label(dynamically) Pin
Hamid_RT4-Dec-08 3:51
Hamid_RT4-Dec-08 3:51 
GeneralRe: Using CMFCStatusBar class How do you Set the Text for a Label(dynamically) Pin
Larry Mills Sr4-Dec-08 4:33
Larry Mills Sr4-Dec-08 4:33 
QuestionRe: Using CMFCStatusBar class How do you Set the Text for a Label(dynamically) Pin
led mike4-Dec-08 4:44
led mike4-Dec-08 4:44 
AnswerRe: Using CMFCStatusBar class How do you Set the Text for a Label(dynamically) Pin
Larry Mills Sr4-Dec-08 5:11
Larry Mills Sr4-Dec-08 5:11 
GeneralRe: Using CMFCStatusBar class How do you Set the Text for a Label(dynamically) Pin
led mike4-Dec-08 5:27
led mike4-Dec-08 5:27 
GeneralRe: Using CMFCStatusBar class How do you Set the Text for a Label(dynamically) Pin
led mike4-Dec-08 4:34
led mike4-Dec-08 4:34 
GeneralRe: Using CMFCStatusBar class How do you Set the Text for a Label(dynamically) Pin
Mark Salsbery4-Dec-08 5:23
Mark Salsbery4-Dec-08 5:23 
GeneralRe: Using CMFCStatusBar class How do you Set the Text for a Label(dynamically) Pin
Larry Mills Sr4-Dec-08 5:50
Larry Mills Sr4-Dec-08 5:50 
GeneralRe: Using CMFCStatusBar class How do you Set the Text for a Label(dynamically) Pin
Code-o-mat4-Dec-08 6:19
Code-o-mat4-Dec-08 6:19 
GeneralRe: Using CMFCStatusBar class How do you Set the Text for a Label(dynamically) Pin
Larry Mills Sr4-Dec-08 6:55
Larry Mills Sr4-Dec-08 6:55 
GeneralRe: Using CMFCStatusBar class How do you Set the Text for a Label(dynamically) Pin
Code-o-mat4-Dec-08 6:59
Code-o-mat4-Dec-08 6:59 
GeneralRe: Using CMFCStatusBar class How do you Set the Text for a Label(dynamically) Pin
David Crow4-Dec-08 6:49
David Crow4-Dec-08 6:49 
GeneralRe: Using CMFCStatusBar class How do you Set the Text for a Label(dynamically) Pin
Larry Mills Sr4-Dec-08 6:59
Larry Mills Sr4-Dec-08 6:59 
GeneralRe: Using CMFCStatusBar class How do you Set the Text for a Label(dynamically) Pin
Hamid_RT4-Dec-08 7:34
Hamid_RT4-Dec-08 7:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.