Click here to Skip to main content
15,920,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralLINK : warning LNK4089: all references to "MSVCIRT.dll" discarded by /OPT:REF Pin
youssef16-Apr-02 1:27
youssef16-Apr-02 1:27 
GeneralRe: LINK : warning LNK4089: all references to "MSVCIRT.dll" discarded by /OPT:REF Pin
Tim Smith16-Apr-02 2:17
Tim Smith16-Apr-02 2:17 
Generalfile properties Pin
16-Apr-02 0:43
suss16-Apr-02 0:43 
GeneralRe: file properties Pin
Christian Graus16-Apr-02 1:57
protectorChristian Graus16-Apr-02 1:57 
GeneralRe: file properties Pin
16-Apr-02 3:23
suss16-Apr-02 3:23 
GeneralRe: file properties Pin
Christian Graus16-Apr-02 10:27
protectorChristian Graus16-Apr-02 10:27 
Questionhow to write an eraser for layers Pin
rainfallc16-Apr-02 0:36
rainfallc16-Apr-02 0:36 
AnswerRe: how to write an eraser for layers Pin
Christian Graus16-Apr-02 2:01
protectorChristian Graus16-Apr-02 2:01 
rainfallc wrote:
how should i do if i want to erase some parts of current layer and leave
other layers without changing, which means their graphics still show as
before. i want to do as the Flash's eraser.


You need to impliment some degree of transparency between layers ( obviously, or you'll only see the top layer ). I'm told GDI+ actually draws using the alpha layer, so you could try that, it certainly supports colour keying at least. The Intel image processing library was what I used to write a paint program with layers, it also supports tiled images beyond what is physically possible for a Windows bitmap.

rainfallc wrote:
BTW: i used CTypedPtrArray to store every layer

What are you storing pointers of ? If they are CBitmaps, you're going about it all wrong. They need to be DIBSections ( or GDI+ Bitmaps). I'd also recommend vector over dodgy MFC containers, or list or set if you want to be able to swap layers around.


Christian

The tragedy of cyberspace - that so much can travel so far, and yet mean so little.

"I'm somewhat suspicious of STL though. My (test,experimental) program worked first time. Whats that all about??!?!
- Jon Hulatt, 22/3/2002
GeneralRe: how to write an eraser for layers Pin
rainfallc16-Apr-02 4:23
rainfallc16-Apr-02 4:23 
GeneralRe: how to write an eraser for layers Pin
Christian Graus16-Apr-02 10:47
protectorChristian Graus16-Apr-02 10:47 
GeneralRe: how to write an eraser for layers Pin
rainfallc16-Apr-02 15:39
rainfallc16-Apr-02 15:39 
GeneralRe: how to write an eraser for layers Pin
Christian Graus16-Apr-02 16:55
protectorChristian Graus16-Apr-02 16:55 
GeneralRe: how to write an eraser for layers Pin
rainfallc16-Apr-02 18:28
rainfallc16-Apr-02 18:28 
GeneralRe: how to write an eraser for layers Pin
Christian Graus16-Apr-02 19:03
protectorChristian Graus16-Apr-02 19:03 
GeneralRe: how to write an eraser for layers Pin
rainfallc16-Apr-02 19:52
rainfallc16-Apr-02 19:52 
GeneralRe: how to write an eraser for layers Pin
Christian Graus16-Apr-02 19:59
protectorChristian Graus16-Apr-02 19:59 
Generalgetting a dialog's dc Pin
John Oliver16-Apr-02 0:35
John Oliver16-Apr-02 0:35 
GeneralRe: getting a dialog's dc Pin
Paul M Watt16-Apr-02 5:33
mentorPaul M Watt16-Apr-02 5:33 
GeneralMultiple Selection with drag and Drop between TreeCtrls Pin
Luis Reina16-Apr-02 0:16
Luis Reina16-Apr-02 0:16 
QuestionToolbars in Dialogs? Pin
funbag15-Apr-02 23:33
funbag15-Apr-02 23:33 
AnswerRe: Toolbars in Dialogs? Pin
Christian Graus16-Apr-02 2:02
protectorChristian Graus16-Apr-02 2:02 
GeneralDistributed compiling with VStudio 6.0 Pin
Braulio Dez15-Apr-02 23:23
Braulio Dez15-Apr-02 23:23 
GeneralBlocking Sockets - and don´t get the last byte Pin
BtK15-Apr-02 23:12
BtK15-Apr-02 23:12 
GeneralRe: Blocking Sockets - and don´t get the last byte Pin
Le centriste16-Apr-02 3:17
Le centriste16-Apr-02 3:17 
QuestionWhy I Can't get WIM_DATA message in callback function 'waveInProc' ? Pin
Cloudway15-Apr-02 22:57
Cloudway15-Apr-02 22:57 

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.