Click here to Skip to main content
15,892,927 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to detect mouse click on application taskbar button??? Pin
tarunclassic16-Oct-08 1:57
tarunclassic16-Oct-08 1:57 
AnswerRe: How to detect mouse click on application taskbar button??? Pin
Rajesh R Subramanian16-Oct-08 2:08
professionalRajesh R Subramanian16-Oct-08 2:08 
GeneralRe: How to detect mouse click on application taskbar button??? Pin
tarunclassic16-Oct-08 2:21
tarunclassic16-Oct-08 2:21 
GeneralRe: How to detect mouse click on application taskbar button??? Pin
only_jack16-Oct-08 10:49
only_jack16-Oct-08 10:49 
GeneralRe: How to detect mouse click on application taskbar button??? Pin
tarunclassic16-Oct-08 19:34
tarunclassic16-Oct-08 19:34 
GeneralRe: How to detect mouse click on application taskbar button??? Pin
tarunclassic17-Oct-08 3:25
tarunclassic17-Oct-08 3:25 
GeneralRe: How to detect mouse click on application taskbar button??? Pin
only_jack18-Oct-08 8:31
only_jack18-Oct-08 8:31 
QuestionDrawText in animatewindow. [modified] Pin
gothic_coder16-Oct-08 1:18
gothic_coder16-Oct-08 1:18 
Hi all..

How do i use DrawText in animate window. With the help of animate window i'm popping up my dialog box. And in WM_PAINT i'm using DrawText to put some text on Bitmap. DrawText works fine when i don't use animatewindow. But it didn't work when using animatewindow.

case WM_PAINT:
{
        PAINTSTRUCT   ps;
	HDC           hDC;
	hDC = BeginPaint(hWnd, &ps);
 
       RECT r = {0};
	HDC hdc_bitmap_text = NULL;
	UpdateWindow(hWnd);
	GetClientRect(GetDlgItem(hWnd, IDC_NEW_BITMAP), &r);
	hdc_bitmap_text = GetDC(GetDlgItem(hWnd, IDC_NEW_BITMAP));

	if(hdc_bitmap_text)
	{
		SetBkMode(hdc_bitmap_text, TRANSPARENT);
		SetTextColor(hdc_bitmap_text, RGB(0,0,0)); 
	
        	DrawText(hdc_bitmap_text,
				iCm->BitmapMessage,
				-1, 
				&r, 
				DT_SINGLELINE | DT_CENTER | DT_VCENTER);
				
		ReleaseDC(GetDlgItem(hWnd, IDC_NEW_BITMAP), hdc_bitmap_text);
		hdc_bitmap_text = NULL;
	}
      EndPaint(hWnd, &ps);
  break;
}


modified on Thursday, October 16, 2008 7:25 AM

AnswerRe: DrawText in animatewindow. Pin
Jose David Pujo16-Oct-08 1:29
Jose David Pujo16-Oct-08 1:29 
GeneralRe: DrawText in animatewindow. Pin
gothic_coder16-Oct-08 1:44
gothic_coder16-Oct-08 1:44 
GeneralRe: DrawText in animatewindow. Pin
Jose David Pujo16-Oct-08 1:48
Jose David Pujo16-Oct-08 1:48 
GeneralRe: DrawText in animatewindow. Pin
gothic_coder16-Oct-08 2:04
gothic_coder16-Oct-08 2:04 
GeneralRe: DrawText in animatewindow. Pin
Hamid_RT16-Oct-08 4:11
Hamid_RT16-Oct-08 4:11 
GeneralRe: DrawText in animatewindow. Pin
Jose David Pujo16-Oct-08 21:36
Jose David Pujo16-Oct-08 21:36 
Question[Message Deleted] Pin
lpVCcode15-Oct-08 23:56
lpVCcode15-Oct-08 23:56 
AnswerRe: File Filter Pin
KarstenK16-Oct-08 0:05
mveKarstenK16-Oct-08 0:05 
GeneralRe: File Filter Pin
CPallini16-Oct-08 0:12
mveCPallini16-Oct-08 0:12 
GeneralRe: File Filter Pin
lpVCcode16-Oct-08 0:14
lpVCcode16-Oct-08 0:14 
GeneralRe: File Filter Pin
CPallini16-Oct-08 0:42
mveCPallini16-Oct-08 0:42 
General[Message Deleted] Pin
lpVCcode16-Oct-08 0:50
lpVCcode16-Oct-08 0:50 
GeneralRe: File Filter Pin
CPallini16-Oct-08 0:59
mveCPallini16-Oct-08 0:59 
JokeRe: File Filter Pin
Rajesh R Subramanian16-Oct-08 1:19
professionalRajesh R Subramanian16-Oct-08 1:19 
JokeRe: File Filter Pin
CPallini16-Oct-08 1:35
mveCPallini16-Oct-08 1:35 
JokeRe: File Filter Pin
Rajesh R Subramanian16-Oct-08 1:53
professionalRajesh R Subramanian16-Oct-08 1:53 
JokeRe: File Filter Pin
CPallini16-Oct-08 2:02
mveCPallini16-Oct-08 2:02 

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.