Click here to Skip to main content
15,891,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Sorting Recordset Pin
Ouenstreet13-Sep-04 9:56
Ouenstreet13-Sep-04 9:56 
GeneralHelp with Printing Pin
Eversman9-Sep-04 10:01
Eversman9-Sep-04 10:01 
GeneralRe: Help with Printing Pin
David Crow9-Sep-04 10:38
David Crow9-Sep-04 10:38 
GeneralRe: Help with Printing Pin
Eversman9-Sep-04 10:43
Eversman9-Sep-04 10:43 
GeneralRe: Help with Printing Pin
David Crow9-Sep-04 11:00
David Crow9-Sep-04 11:00 
GeneralRe: Help with Printing Pin
Eversman9-Sep-04 11:26
Eversman9-Sep-04 11:26 
GeneralRe: Help with Printing Pin
David Crow10-Sep-04 2:11
David Crow10-Sep-04 2:11 
GeneralWin32 control compositing Pin
Jim Crafton9-Sep-04 9:47
Jim Crafton9-Sep-04 9:47 
During porting the VCF to osx I came across a distinction that Apples uses - the notion of a composited window, where a window is the popup window where all the child controls live. While I was debugging something on OSX I found that if a window was marked as being composited ALL the child controls used the same graphics device to paint on during their paint event.
So, while I don't know how Apple does this, I started to wonder about this on Win32. What would happen if you maintained a map of popup windows and bitmap hdc's such that for each popup window you had one in-memory bitmap DC that was the height/width of the popup window. When the window was resized so would the bitmap. Then, for all the child control drawing, they would draw onto a section of this main DC, and then just bitblt the relevant part back to the HDC passed in to the WM_PAINT.
This would give you:
- automatic double buffering without each control having to maintain a separate bitmap/memory dc
- the ability to draw "outside" the edges of your control, for example if you wanted a "glow" effect on the edges of your control this would make this possible.
- possibly more efficient transparency effects that because you are reusing the same DC to paint on.

I would be curious to hear what others think. Has this been done before? If so did it work very well? Am I totally out of my mind?

Cheers

Jim

¡El diablo está en mis pantalones! ¡Mire, mire!

Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!

SELECT * FROM User WHERE Clue > 0
0 rows returned

GeneralRe: Win32 control compositing Pin
Ryan Binns9-Sep-04 18:46
Ryan Binns9-Sep-04 18:46 
GeneralRe: Win32 control compositing Pin
Jim Crafton10-Sep-04 5:25
Jim Crafton10-Sep-04 5:25 
GeneralRe: Win32 control compositing Pin
Ryan Binns10-Sep-04 22:29
Ryan Binns10-Sep-04 22:29 
GeneralRe: Win32 control compositing Pin
Blake Miller13-Sep-04 6:32
Blake Miller13-Sep-04 6:32 
GeneralRe: Win32 control compositing Pin
Ryan Binns13-Sep-04 20:42
Ryan Binns13-Sep-04 20:42 
GeneralList Control : Can't change focus w/ tab key Pin
Wes Jones9-Sep-04 7:37
Wes Jones9-Sep-04 7:37 
GeneralRe: List Control : Can't change focus w/ tab key Pin
David Crow9-Sep-04 11:02
David Crow9-Sep-04 11:02 
GeneralRe: List Control : Can't change focus w/ tab key Pin
Wes Jones9-Sep-04 12:55
Wes Jones9-Sep-04 12:55 
Generalctabctrl Pin
prateekkathuria9-Sep-04 7:29
prateekkathuria9-Sep-04 7:29 
GeneralRe: ctabctrl Pin
prateekkathuria9-Sep-04 9:50
prateekkathuria9-Sep-04 9:50 
QuestionDisplaying a monochrome uchar array - formatting problem? Pin
towd9-Sep-04 5:23
towd9-Sep-04 5:23 
AnswerRe: Displaying a monochrome uchar array - formatting problem? Pin
Chris Losinger9-Sep-04 7:22
professionalChris Losinger9-Sep-04 7:22 
GeneralSetting EXACT Button Size Pin
_BaRNi_9-Sep-04 4:37
_BaRNi_9-Sep-04 4:37 
GeneralRe: Setting EXACT Button Size Pin
alex.barylski9-Sep-04 5:09
alex.barylski9-Sep-04 5:09 
GeneralRe: Setting EXACT Button Size Pin
_BaRNi_9-Sep-04 5:19
_BaRNi_9-Sep-04 5:19 
GeneralRe: Setting EXACT Button Size Pin
Maximilien9-Sep-04 6:47
Maximilien9-Sep-04 6:47 
GeneralRe: Setting EXACT Button Size Pin
David Crow9-Sep-04 8:24
David Crow9-Sep-04 8:24 

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.