Click here to Skip to main content
15,913,722 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: link with one of the multithreaded C run-time libraries. Pin
jmkhael10-Dec-03 2:06
jmkhael10-Dec-03 2:06 
GeneralRe: link with one of the multithreaded C run-time libraries. Pin
Mike Dimmick10-Dec-03 2:38
Mike Dimmick10-Dec-03 2:38 
GeneralUndo/Redo help required... Pin
satadru10-Dec-03 0:51
satadru10-Dec-03 0:51 
GeneralRe: Undo/Redo help required... Pin
Anonymous10-Dec-03 1:35
Anonymous10-Dec-03 1:35 
GeneralRe: Undo/Redo help required... Pin
Anonymous10-Dec-03 1:37
Anonymous10-Dec-03 1:37 
GeneralRe: Undo/Redo help required... Pin
David Crow10-Dec-03 3:26
David Crow10-Dec-03 3:26 
GeneralRe: Undo/Redo help required... Pin
David Crow10-Dec-03 3:30
David Crow10-Dec-03 3:30 
GeneralRe: Undo/Redo help required... Pin
Anonymous10-Dec-03 18:54
Anonymous10-Dec-03 18:54 
step 1. firstly identify the type of operations for which you like to have undo facility.

step 2. create a CUndo class and add to it all the necessary variables for each type of opeations.

step 3. create a vector of CUndo pointers .

step 4 .save all the CUndo object pointers in this particular vector.

always save the previous state of the image when the user performs certain action.

for example if the image is changed from state1 to state2 then create an undo object storing all necessary information of state1 and add to vector.

if the user clicks undo menu then again create an undo object of state 2. then read the last object in the vector, refresh the image with the information retrieved from vector, delete this state1 undo object from the vector, and add the state 2 undo object information.
Questionany one used CxImage???? Pin
satadru10-Dec-03 0:47
satadru10-Dec-03 0:47 
AnswerRe: any one used CxImage???? Pin
gri10-Dec-03 3:37
gri10-Dec-03 3:37 
GeneralGetAncestor api in VC++ 6 Pin
vladimir_india10-Dec-03 0:23
vladimir_india10-Dec-03 0:23 
GeneralRe: GetAncestor api in VC++ 6 Pin
jmkhael10-Dec-03 0:28
jmkhael10-Dec-03 0:28 
GeneralRe: GetAncestor api in VC++ 6 Pin
vladimir_india10-Dec-03 18:19
vladimir_india10-Dec-03 18:19 
GeneralRe: GetAncestor api in VC++ 6 Pin
vladimir_india13-Dec-03 5:10
vladimir_india13-Dec-03 5:10 
Questionhow to encode .wav file Pin
yingkou10-Dec-03 0:08
yingkou10-Dec-03 0:08 
AnswerRe: how to encode .wav file Pin
Alexander M.,10-Dec-03 5:27
Alexander M.,10-Dec-03 5:27 
GeneralRe: how to encode .wav file Pin
yingkou10-Dec-03 15:41
yingkou10-Dec-03 15:41 
GeneralWin95: LoadIcon/Image fails if resource to big Pin
Gerald769-Dec-03 23:27
Gerald769-Dec-03 23:27 
GeneralRe: Win95: LoadIcon/Image fails if resource to big Pin
Alexander M.,10-Dec-03 5:30
Alexander M.,10-Dec-03 5:30 
GeneralCreateRemoteThread under 98 Pin
ktvije9-Dec-03 22:39
ktvije9-Dec-03 22:39 
GeneralRe: CreateRemoteThread under 98 Pin
jmkhael9-Dec-03 23:09
jmkhael9-Dec-03 23:09 
GeneralRe: CreateRemoteThread under 98 Pin
ktvije10-Dec-03 0:00
ktvije10-Dec-03 0:00 
GeneralRe: CreateRemoteThread under 98 Pin
jmkhael10-Dec-03 0:10
jmkhael10-Dec-03 0:10 
GeneralRe: CreateRemoteThread under 98 Pin
ktvije10-Dec-03 2:39
ktvije10-Dec-03 2:39 
GeneralProperty page trouble Pin
pranavamhari9-Dec-03 21:37
pranavamhari9-Dec-03 21:37 

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.