Click here to Skip to main content
16,012,316 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Casting pointer to pointer of class [modified] Pin
Andre xxxxxxx15-Jun-06 15:03
Andre xxxxxxx15-Jun-06 15:03 
AnswerRe: Casting pointer to pointer of class Pin
Michael Dunn15-Jun-06 16:13
sitebuilderMichael Dunn15-Jun-06 16:13 
GeneralRe: Casting pointer to pointer of class Pin
Stephen Hewitt15-Jun-06 18:23
Stephen Hewitt15-Jun-06 18:23 
GeneralRe: Casting pointer to pointer of class Pin
Michael Dunn15-Jun-06 20:41
sitebuilderMichael Dunn15-Jun-06 20:41 
GeneralRe: Casting pointer to pointer of class [modified] Pin
Stephen Hewitt15-Jun-06 20:46
Stephen Hewitt15-Jun-06 20:46 
AnswerRe: Casting pointer to pointer of class [modified] Pin
Arvind Bharti15-Jun-06 17:10
Arvind Bharti15-Jun-06 17:10 
AnswerRe: Casting pointer to pointer of class [modified] Pin
Stephen Hewitt15-Jun-06 18:40
Stephen Hewitt15-Jun-06 18:40 
QuestionLayered Window Question - UpdateLayeredWindow() API [modified] Pin
JeanneBucks15-Jun-06 13:17
JeanneBucks15-Jun-06 13:17 
Hi all,

Has anyone encountered some VERY STRANGE problems with layered windows, when using the CWnd::UpdateLayeredWindow() API call?

I have had success and failures using the SAME call from within the constructor of my CWnd derived class. My "success" is determined by the classname used when the window was created.

I'm calling UpDateLayeredWindow() this way:

BOOL bResult = 	UpdateLayeredWindow( NULL, &ptDest, &size,  &mem,<br />
		&ptSrc, byAlpha, &m_Blend, ULW_ALPHA);


Note "mem" is a screenCompatible CDC, on which a bitmap was drawn via code(simple rectangular fill), and size is the size of the CBitmap object selcted into the mem CDC.

1) Partial success if created using -

CWnd::CreateEx(WS_EX_LAYERED |WS_EX_TOPMOST|WS_EX_TOOLWINDOW, "STATIC",<br />
	 _T(""),WS_VISIBLE|WS_POPUP, 300,300,200,200,NULL, NULL, NULL );<br />

my window appears, but doesn't receive mouse events.


2) Failure, if I create it using:

CreateEx(WS_EX_LAYERED |WS_EX_TOPMOST|WS_EX_TOOLWINDOW, m_lpszClassName,<br />
	 _T(""),WS_VISIBLE|WS_POPUP, 300,300,200,200,NULL, NULL, NULL );


where
m_lpszClassName = AfxRegisterWndClass( CS_VREDRAW | CS_HREDRAW | CS_OWNDC );

The bitmap does NOT appear. I have to do a bitblt of the mem to screen to see it appear, preceded by a MoveWindow call. But then I receive mouse events.

I find this baffling.Confused | :confused: Does anyone else have any insight into this situation?

Thanks for anything info you can provide!



Jeanne Sim

-- modified at 19:22 Thursday 15th June, 2006
QuestionHard question about Critical section - in C++ .... Pin
Yanshof15-Jun-06 10:16
Yanshof15-Jun-06 10:16 
AnswerRe: Hard question about Critical section - in C++ .... Pin
Eric Dahlvang15-Jun-06 10:40
Eric Dahlvang15-Jun-06 10:40 
AnswerRe: Hard question about Critical section - in C++ .... Pin
David Crow15-Jun-06 10:46
David Crow15-Jun-06 10:46 
GeneralRe: Hard question - still without answer Pin
Yanshof15-Jun-06 11:40
Yanshof15-Jun-06 11:40 
GeneralRe: Hard question - still without answer Pin
David Crow16-Jun-06 2:33
David Crow16-Jun-06 2:33 
AnswerRe: Hard question about Critical section - in C++ .... Pin
Jörgen Sigvardsson15-Jun-06 12:23
Jörgen Sigvardsson15-Jun-06 12:23 
AnswerRe: Hard question about Critical section - in C++ .... Pin
Arvind Bharti15-Jun-06 17:20
Arvind Bharti15-Jun-06 17:20 
GeneralRe: Hard question about Critical section - in C++ .... Pin
Rick York15-Jun-06 20:20
mveRick York15-Jun-06 20:20 
QuestionCloning an Existing Project Pin
TL_4515-Jun-06 9:23
TL_4515-Jun-06 9:23 
AnswerRe: Cloning an Existing Project Pin
Jun Du15-Jun-06 9:50
Jun Du15-Jun-06 9:50 
AnswerRe: Cloning an Existing Project Pin
alan top15-Jun-06 18:32
alan top15-Jun-06 18:32 
QuestionBest strategy for 2 computer dialog. Pin
tazzi15-Jun-06 6:17
tazzi15-Jun-06 6:17 
AnswerRe: Best strategy for 2 computer dialog. Pin
David Crow15-Jun-06 6:25
David Crow15-Jun-06 6:25 
GeneralRe: Best strategy for 2 computer dialog. Pin
tazzi15-Jun-06 6:45
tazzi15-Jun-06 6:45 
GeneralRe: Best strategy for 2 computer dialog. Pin
Jun Du15-Jun-06 7:09
Jun Du15-Jun-06 7:09 
Question[Message Deleted] Pin
lulu044115-Jun-06 5:56
lulu044115-Jun-06 5:56 
AnswerRe: Administrative system of parking tower Pin
David Crow15-Jun-06 6:00
David Crow15-Jun-06 6:00 

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.