Click here to Skip to main content
15,901,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to launch 'System Restore' point thru pgm in Win XP? Pin
Supriya Tonape24-Aug-05 22:21
Supriya Tonape24-Aug-05 22:21 
Generalpost script file printing Pin
leelamaheshb23-Aug-05 19:23
leelamaheshb23-Aug-05 19:23 
GeneralRe: post script file printing Pin
Shiva Prasad24-Aug-05 1:16
Shiva Prasad24-Aug-05 1:16 
GeneralRe: post script file printing Pin
leelamaheshb24-Aug-05 20:06
leelamaheshb24-Aug-05 20:06 
GeneralSetLayeredWindowAttributes & Child windows :(( Pin
Hamed Musavi23-Aug-05 19:18
Hamed Musavi23-Aug-05 19:18 
GeneralRe: SetLayeredWindowAttributes & Child windows :(( Pin
Christian Graus23-Aug-05 19:30
protectorChristian Graus23-Aug-05 19:30 
GeneralRe: SetLayeredWindowAttributes & Child windows :(( Pin
Hamed Musavi24-Aug-05 0:47
Hamed Musavi24-Aug-05 0:47 
GeneralRe: SetLayeredWindowAttributes & Child windows :(( Pin
Shog924-Aug-05 11:23
sitebuilderShog924-Aug-05 11:23 
Easy answer: You can't. SetLayeredWindowAttributes() only works for top-level windows, and effect all children.

A solution: You can use two dialogs, and carefully keep them positioned so that one is always directly above the other. Set the "bottom" dialog to be translucent, set the window region of the upper one to clip out everything except the controls (you could also use SetLayeredWindowAttributes() with a color key to accomplish this). You'll then see past the (fully-visible) controls through the translucent background to whatever is behind them.

Another solution: Draw the entire dialog yourself using UpdateLayeredWindow() (perhaps sending WM_PRINT messages to render the child controls). This is the most flexible, you can have varying alpha across the window. It is quite likely the most work as well.


GeneralRe: SetLayeredWindowAttributes & Child windows :(( Pin
Hamed Musavi24-Aug-05 18:32
Hamed Musavi24-Aug-05 18:32 
GeneralRe: SetLayeredWindowAttributes & Child windows :(( Pin
Shog924-Aug-05 19:45
sitebuilderShog924-Aug-05 19:45 
GeneralRe: SetLayeredWindowAttributes & Child windows :(( Pin
Hamed Musavi25-Aug-05 9:33
Hamed Musavi25-Aug-05 9:33 
GeneralLinker errrors Pin
Christian Graus23-Aug-05 19:10
protectorChristian Graus23-Aug-05 19:10 
GeneralRe: Linker errrors Pin
MailtoGops23-Aug-05 19:27
MailtoGops23-Aug-05 19:27 
GeneralRe: Linker errrors Pin
Christian Graus23-Aug-05 19:29
protectorChristian Graus23-Aug-05 19:29 
GeneralRe: Linker errrors Pin
Luis Alonso Ramos23-Aug-05 19:39
Luis Alonso Ramos23-Aug-05 19:39 
GeneralRe: Linker errrors Pin
Christian Graus23-Aug-05 19:45
protectorChristian Graus23-Aug-05 19:45 
GeneralRe: Linker errrors Pin
Luis Alonso Ramos23-Aug-05 20:07
Luis Alonso Ramos23-Aug-05 20:07 
GeneralRe: Linker errrors Pin
Trollslayer23-Aug-05 22:31
mentorTrollslayer23-Aug-05 22:31 
GeneralRe: Linker errrors Pin
Weiye Chen23-Aug-05 21:31
Weiye Chen23-Aug-05 21:31 
GeneralGet Sharing folders... Pin
mvnevis23-Aug-05 18:13
mvnevis23-Aug-05 18:13 
GeneralWhat's the process of Message Map to a MFC-based Application Programe Pin
shanzy23-Aug-05 18:09
shanzy23-Aug-05 18:09 
GeneralRe: What's the process of Message Map to a MFC-based Application Programe Pin
Christian Graus23-Aug-05 18:34
protectorChristian Graus23-Aug-05 18:34 
GeneralRe: What's the process of Message Map to a MFC-based Application Programe Pin
shanzy23-Aug-05 18:44
shanzy23-Aug-05 18:44 
Generalsharing folder.... Pin
mvnevis23-Aug-05 18:06
mvnevis23-Aug-05 18:06 
Generalupdating global variable using a mutex Pin
elephantstar23-Aug-05 16:51
elephantstar23-Aug-05 16:51 

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.