Click here to Skip to main content
15,915,777 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: void functions in g++ Pin
ZoogieZork13-Sep-03 12:32
ZoogieZork13-Sep-03 12:32 
GeneralRe: void functions in g++ Pin
keegan13-Sep-03 12:53
keegan13-Sep-03 12:53 
GeneralOpen & Read & Write in USB port Pin
asd175313-Sep-03 8:23
asd175313-Sep-03 8:23 
GeneralRe: Open & Read & Write in USB port Pin
Felix Gartsman13-Sep-03 8:33
Felix Gartsman13-Sep-03 8:33 
GeneralRe: Open & Read & Write in USB port Pin
asd175313-Sep-03 8:38
asd175313-Sep-03 8:38 
GeneralRe: Open & Read & Write in USB port Pin
Felix Gartsman13-Sep-03 23:16
Felix Gartsman13-Sep-03 23:16 
GeneralMFC-a windows paint example, how do i do the text option Pin
lxxrya00113-Sep-03 8:22
lxxrya00113-Sep-03 8:22 
GeneralRe: MFC-a windows paint example, how do i do the text option Pin
Steve Hopkins13-Sep-03 9:41
Steve Hopkins13-Sep-03 9:41 
CDC::TextOut() or any of the other variants.

For the resizing you will have to hit test the mouse click against the list of items you draw, if it is within your hit test bounds then you have a hit and move to editing mode for the item. Store the details that you use to draw the item, and as the mouse moves, erase the item as it was, quick way to do it is via an XOR drawing operation. Draw the new item at the new position. On mouse up, commit the new positions to the store. You will have to worry about which item to select on the hit test. Think of each item being created as being on a stack, hit-test working down the stack. If two items are possible hits, then it is the more newly created (ie on top) item that will be selected. then you will have to do a move to back, bring to front mechanism, but that is simple.

HTH,

Steve.

if(E_NOINTERFACE == pThat->QueryInterface(IID_IUnknown,(void**)&pUnk))
{
// I aint no pUnk bitch!
}
GeneralAppend one string at begin of another Pin
skaanji13-Sep-03 7:34
skaanji13-Sep-03 7:34 
GeneralRe: Append one string at begin of another Pin
Scozturk13-Sep-03 8:09
professionalScozturk13-Sep-03 8:09 
GeneralRe: Append one string at begin of another Pin
skaanji13-Sep-03 8:34
skaanji13-Sep-03 8:34 
GeneralRe: Append one string at begin of another Pin
JohnJ13-Sep-03 9:32
JohnJ13-Sep-03 9:32 
GeneralRe: Append one string at begin of another Pin
Michael Dunn13-Sep-03 17:43
sitebuilderMichael Dunn13-Sep-03 17:43 
GeneralRe: Append one string at begin of another Pin
ZoogieZork13-Sep-03 9:32
ZoogieZork13-Sep-03 9:32 
GeneralRe: Append one string at begin of another Pin
skaanji13-Sep-03 10:29
skaanji13-Sep-03 10:29 
Generalmouse and keyboard Pin
Ta_Tee47313-Sep-03 6:55
Ta_Tee47313-Sep-03 6:55 
GeneralChecking the attributes of a file Pin
Dilshad Husain13-Sep-03 5:29
Dilshad Husain13-Sep-03 5:29 
GeneralRe: Checking the attributes of a file Pin
Michael Dunn13-Sep-03 5:49
sitebuilderMichael Dunn13-Sep-03 5:49 
Generalprogram nt responding--error Pin
coda_x13-Sep-03 2:09
coda_x13-Sep-03 2:09 
GeneralRe: program nt responding--error Pin
coda_x13-Sep-03 2:10
coda_x13-Sep-03 2:10 
GeneralRe: program nt responding--error Pin
PengFeidu13-Sep-03 2:36
PengFeidu13-Sep-03 2:36 
GeneralRe: program nt responding--error Pin
Gary R. Wheeler13-Sep-03 3:34
Gary R. Wheeler13-Sep-03 3:34 
GeneralRe: program nt responding--error Pin
coda_x13-Sep-03 16:50
coda_x13-Sep-03 16:50 
GeneralQues regarding Icon and Button Pin
SatyaDY13-Sep-03 0:19
SatyaDY13-Sep-03 0:19 
GeneralRe: Ques regarding Icon and Button Pin
Larry J. Siddens13-Sep-03 3:39
Larry J. Siddens13-Sep-03 3:39 

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.