Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Listview header mouse click Pin
Stephen Hewitt19-Apr-10 20:58
Stephen Hewitt19-Apr-10 20:58 
AnswerRe: Listview header mouse click Pin
KarstenK19-Apr-10 21:00
mveKarstenK19-Apr-10 21:00 
QuestionMonitoring received packets on app which uses IOCP(hooking) Pin
l0odi19-Apr-10 18:51
l0odi19-Apr-10 18:51 
AnswerRe: Monitoring received packets on app which uses IOCP(hooking) Pin
l0odi21-Apr-10 6:10
l0odi21-Apr-10 6:10 
Questionhow to embed the window of my program in the desktop?(The window is showed under the desktop icons.) Pin
letianzhu19-Apr-10 17:50
letianzhu19-Apr-10 17:50 
AnswerRe: how to embed the window of my program in the desktop?(The window is showed under the desktop icons.) Pin
Code-o-mat19-Apr-10 21:42
Code-o-mat19-Apr-10 21:42 
GeneralRe: how to embed the window of my program in the desktop?(The window is showed under the desktop icons.) Pin
Stephen Hewitt19-Apr-10 21:57
Stephen Hewitt19-Apr-10 21:57 
AnswerRe: how to embed the window of my program in the desktop?(The window is showed under the desktop icons.) Pin
Michel Godfroid20-Apr-10 3:20
Michel Godfroid20-Apr-10 3:20 
You should never, ever do this.
If you use the desktop as your parent window, and then display a modal dialog box, you will effectively hang the system.
http://blogs.msdn.com/oldnewthing/archive/2004/02/24/79212.aspx

The window you retrieve from GetDesktopWindow is the parent window of all the windows in the system, and it is not visible, (it is completely covered by it's children). You could try forcing WM_PAINT, after you get a DC through GetDCEx, setting DCX_CLIPCHILDREN to false, but this will result in painting Over the Controls.

Maybe subclass the listview which contains the icons, and do your painting on that one. That should work.
About the Active Desktop solutions mentionned here: Active desktop has been canned with Windows XP 64 bit. Vista and Weven don't carry it anymore. Desktop Gadgets is the flavor of the day.
GeneralRe: how to embed the window of my program in the desktop?(The window is showed under the desktop icons.) Pin
letianzhu20-Apr-10 4:55
letianzhu20-Apr-10 4:55 
QuestionWinSock 2 + UNICODE / Win32 Pin
Fareed Rizkalla19-Apr-10 11:22
Fareed Rizkalla19-Apr-10 11:22 
AnswerRe: WinSock 2 + UNICODE / Win32 Pin
Richard MacCutchan19-Apr-10 11:46
mveRichard MacCutchan19-Apr-10 11:46 
GeneralRe: WinSock 2 + UNICODE / Win32 Pin
Stephen Hewitt19-Apr-10 14:41
Stephen Hewitt19-Apr-10 14:41 
GeneralRe: WinSock 2 + UNICODE / Win32 Pin
Fareed Rizkalla19-Apr-10 15:45
Fareed Rizkalla19-Apr-10 15:45 
Question[SOLVED]Problem using dmColor member of DEVMODE struct [modified] Pin
hhh19-Apr-10 7:14
hhh19-Apr-10 7:14 
QuestionUnhandled exception Pin
PankajB19-Apr-10 5:59
PankajB19-Apr-10 5:59 
AnswerRe: Unhandled exception Pin
Richard MacCutchan19-Apr-10 6:14
mveRichard MacCutchan19-Apr-10 6:14 
GeneralRe: Unhandled exception Pin
PankajB19-Apr-10 6:50
PankajB19-Apr-10 6:50 
GeneralRe: Unhandled exception Pin
Richard MacCutchan19-Apr-10 6:57
mveRichard MacCutchan19-Apr-10 6:57 
AnswerRe: Unhandled exception Pin
Stephen Hewitt19-Apr-10 14:09
Stephen Hewitt19-Apr-10 14:09 
GeneralRe: Unhandled exception Pin
ramana.g19-Apr-10 19:30
ramana.g19-Apr-10 19:30 
GeneralRe: Unhandled exception Pin
Stephen Hewitt19-Apr-10 21:48
Stephen Hewitt19-Apr-10 21:48 
GeneralRe: Unhandled exception Pin
Saurabh.Garg19-Apr-10 19:51
Saurabh.Garg19-Apr-10 19:51 
GeneralRe: Unhandled exception Pin
Stephen Hewitt19-Apr-10 21:48
Stephen Hewitt19-Apr-10 21:48 
Questiontransaction - rollback in C ??? Pin
aa_zz19-Apr-10 0:20
aa_zz19-Apr-10 0:20 
AnswerRe: transaction - rollback in C ??? PinPopular
CPallini19-Apr-10 0:39
mveCPallini19-Apr-10 0:39 

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.