Click here to Skip to main content
15,924,196 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: what is the different between the the framewrok of the DLL and appliacation in vc++ Pin
gdzfy13-Jul-03 15:55
gdzfy13-Jul-03 15:55 
GeneralClickety Police Pin
John M. Drescher13-Jul-03 15:57
John M. Drescher13-Jul-03 15:57 
GeneralA simple C solution Pin
eggie513-Jul-03 14:49
eggie513-Jul-03 14:49 
GeneralRe: A simple C solution Pin
Chris Losinger13-Jul-03 16:42
professionalChris Losinger13-Jul-03 16:42 
GeneralRe: A simple C solution Pin
Nick Parker13-Jul-03 19:15
protectorNick Parker13-Jul-03 19:15 
GeneralRe: A simple C solution Pin
Joe Woodbury14-Jul-03 9:07
professionalJoe Woodbury14-Jul-03 9:07 
GeneralWininet and php scripts Pin
georgiek5013-Jul-03 13:03
georgiek5013-Jul-03 13:03 
GeneralProblem with AnimatePalette Pin
BillA13-Jul-03 11:44
BillA13-Jul-03 11:44 
I'm having a problem using AnimatePalette. My application's main window is a CFrameWnd subclass with a CView subclass. The CView handles WM_PALETTECHANGED and WM_QUERYNEWPALETTE. All of the graphics in the view are done in child windows. These windows are all of a subclass of CWnd. All are transparent, as they are graphics overlaid on to frame-grabbed video displayed by the CView. Some of the overlaid graphics have to blink on and off, so the parent (CView) window calls SetTimer in its WM_CREATE handler and has a WM_TIMER handler which switches the blinking palette entries from the background color (black in this case) to the foreground color (green in this case) and back by using AnimatePalette. The child windows Select and Realize the palette in their WM_PAINT handlers. This all seems to work just fine.

I have blinking graphical entities in two of the child windows. If I hide one of the windows, the entities in the other window STOP blinking! If they were "off" (i.e. background color) when I hid the sibling window, they never come back "on" (i.e. foreground color) or if "on", they never go back "off" until I show the hidden sibling window again. (I've set up an WM_KEYUP handler to hide/show the child windows).

What am I doing wrong? My CPalette is a data member of the parent (CView) window. Each of the child (CWnd) windows has a data member which holds a pointer to the CPalette object in the parent.

Bill A.
GeneralAlignment Pin
gregs13-Jul-03 9:18
gregs13-Jul-03 9:18 
GeneralRe: Alignment Pin
Joaquín M López Muñoz13-Jul-03 11:47
Joaquín M López Muñoz13-Jul-03 11:47 
GeneralRe: Alignment Pin
gregs13-Jul-03 12:31
gregs13-Jul-03 12:31 
GeneralRe: Alignment Pin
Joaquín M López Muñoz14-Jul-03 10:07
Joaquín M López Muñoz14-Jul-03 10:07 
GeneralRe: Alignment Pin
gregs14-Jul-03 10:32
gregs14-Jul-03 10:32 
GeneralWeb cam help Pin
just_Albert13-Jul-03 8:59
sussjust_Albert13-Jul-03 8:59 
GeneralRe: Web cam help Pin
Ted Ferenc13-Jul-03 9:31
Ted Ferenc13-Jul-03 9:31 
QuestionStore SYSTEMTIME in registry - how? Pin
Anonymous13-Jul-03 8:48
Anonymous13-Jul-03 8:48 
AnswerRe: Store SYSTEMTIME in registry - how? Pin
User 665813-Jul-03 8:55
User 665813-Jul-03 8:55 
GeneralRe: Store SYSTEMTIME in registry - how? Pin
Anonymous13-Jul-03 10:28
Anonymous13-Jul-03 10:28 
GeneralRe: Store SYSTEMTIME in registry - how? Pin
User 665813-Jul-03 11:11
User 665813-Jul-03 11:11 
AnswerRe: Store SYSTEMTIME in registry - how? Pin
Toni7813-Jul-03 10:57
Toni7813-Jul-03 10:57 
AnswerRe: Store SYSTEMTIME in registry - how? Pin
PJ Arends13-Jul-03 13:59
professionalPJ Arends13-Jul-03 13:59 
GeneralRe: Store SYSTEMTIME in registry - how? Pin
Anonymous14-Jul-03 5:12
Anonymous14-Jul-03 5:12 
GeneralRe: Store SYSTEMTIME in registry - how? Pin
Toni7814-Jul-03 20:09
Toni7814-Jul-03 20:09 
Generaladding a color list box in a dialog MFC Pin
mcguile25713-Jul-03 7:31
mcguile25713-Jul-03 7:31 
GeneralRe: adding a color list box in a dialog MFC Pin
adamUK13-Jul-03 11:43
adamUK13-Jul-03 11:43 

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.