Click here to Skip to main content
15,927,836 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralLineDDA, and CallBack function Pin
mr20036-Jun-01 4:11
mr20036-Jun-01 4:11 
GeneralRe: LineDDA, and CallBack function Pin
Igor Sukhov6-Jun-01 7:43
Igor Sukhov6-Jun-01 7:43 
GeneralFlicker... Pin
Heaven6-Jun-01 3:30
Heaven6-Jun-01 3:30 
GeneralRe: Flicker... Pin
Christian Graus6-Jun-01 9:28
protectorChristian Graus6-Jun-01 9:28 
GeneralReplace a string in another string Pin
6-Jun-01 3:24
suss6-Jun-01 3:24 
GeneralRe: Replace a string in another string Pin
Carlos Antollini6-Jun-01 3:53
Carlos Antollini6-Jun-01 3:53 
GeneralRe: Replace a string in another string Pin
6-Jun-01 4:14
suss6-Jun-01 4:14 
GeneralGDI: Changing pen color Pin
6-Jun-01 2:36
suss6-Jun-01 2:36 
Must I create new pen everytime I need to change its color ?

I have to draw number (thousands) of lines and every line must be drawn in different color. The problem is that I don't know how to alter pen color without necessarily creating new pen and selecting it into device context. Everyone will agree that it is waste of memory. Also, creating and deleting pen repeatedly would cause memory fragmentation. I'm stuck here. Please help!

GeneralRe: GDI: Changing pen color Pin
Tomasz Sowinski6-Jun-01 2:41
Tomasz Sowinski6-Jun-01 2:41 
GeneralRe: GDI: Changing pen color Pin
6-Jun-01 2:59
suss6-Jun-01 2:59 
GeneralRe: GDI: Changing pen color Pin
Tomasz Sowinski6-Jun-01 3:13
Tomasz Sowinski6-Jun-01 3:13 
GeneralRe: GDI: Changing pen color Pin
6-Jun-01 3:37
suss6-Jun-01 3:37 
GeneralRe: GDI: Changing pen color Pin
Tomasz Sowinski6-Jun-01 3:50
Tomasz Sowinski6-Jun-01 3:50 
GeneralRe: GDI: Changing pen color Pin
6-Jun-01 4:02
suss6-Jun-01 4:02 
GeneralRe: GDI: Changing pen color Pin
Tomasz Sowinski6-Jun-01 4:29
Tomasz Sowinski6-Jun-01 4:29 
GeneralMemory fragmentation? Pin
6-Jun-01 5:21
suss6-Jun-01 5:21 
GeneralRe: Memory fragmentation? Pin
Tomasz Sowinski6-Jun-01 5:41
Tomasz Sowinski6-Jun-01 5:41 
GeneralRe: Memory fragmentation? Pin
Pavlos Touboulidis6-Jun-01 9:06
Pavlos Touboulidis6-Jun-01 9:06 
GeneralRe: Memory fragmentation? Pin
Christian Graus6-Jun-01 9:40
protectorChristian Graus6-Jun-01 9:40 
GeneralRe: GDI: Changing pen color Pin
NormDroid6-Jun-01 3:26
professionalNormDroid6-Jun-01 3:26 
GeneralRe: GDI: Changing pen color Pin
6-Jun-01 3:52
suss6-Jun-01 3:52 
GeneralRe: GDI: Changing pen color Pin
NormDroid6-Jun-01 3:58
professionalNormDroid6-Jun-01 3:58 
GeneralRe: GDI: Changing pen color Pin
Rick York6-Jun-01 7:01
mveRick York6-Jun-01 7:01 
GeneralRe: GDI: Changing pen color Pin
Christian Graus6-Jun-01 9:43
protectorChristian Graus6-Jun-01 9:43 
GeneralRe: GDI: Changing pen color Pin
Rick York6-Jun-01 11:59
mveRick York6-Jun-01 11:59 

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.