Click here to Skip to main content
15,921,716 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionPrinting using win32 (print to pdf) Pin
koderbytes22-Oct-08 1:39
koderbytes22-Oct-08 1:39 
QuestionUpload a file to server using http Pin
Dhiraj kumar Saini22-Oct-08 1:23
Dhiraj kumar Saini22-Oct-08 1:23 
QuestionRe: Upload a file to server using http Pin
led mike22-Oct-08 4:34
led mike22-Oct-08 4:34 
Questioninteger/long to variant* Pin
SRKSHOME22-Oct-08 1:05
SRKSHOME22-Oct-08 1:05 
QuestionRe: integer/long to variant* Pin
CPallini22-Oct-08 2:14
mveCPallini22-Oct-08 2:14 
AnswerRe: integer/long to variant* Pin
SRKSHOME22-Oct-08 2:27
SRKSHOME22-Oct-08 2:27 
QuestionRe: integer/long to variant* Pin
CPallini22-Oct-08 2:39
mveCPallini22-Oct-08 2:39 
AnswerRe: integer/long to variant* Pin
SRKSHOME22-Oct-08 3:21
SRKSHOME22-Oct-08 3:21 
AnswerRe: integer/long to variant* Pin
Roger Stoltz22-Oct-08 2:40
Roger Stoltz22-Oct-08 2:40 
AnswerRe: integer/long to variant* Pin
Iain Clarke, Warrior Programmer22-Oct-08 2:57
Iain Clarke, Warrior Programmer22-Oct-08 2:57 
AnswerRe: integer/long to variant* Pin
David Crow22-Oct-08 3:25
David Crow22-Oct-08 3:25 
QuestionHow to convert BYTE array into equivalent string data ? Pin
kapardhi22-Oct-08 0:52
kapardhi22-Oct-08 0:52 
AnswerRe: How to convert BYTE array into equivalent string data ? Pin
Iain Clarke, Warrior Programmer22-Oct-08 0:58
Iain Clarke, Warrior Programmer22-Oct-08 0:58 
GeneralRe: How to convert BYTE array into equivalent string data ? Pin
kapardhi22-Oct-08 1:06
kapardhi22-Oct-08 1:06 
QuestionShell Integration problem Pin
GRLEX22-Oct-08 0:26
GRLEX22-Oct-08 0:26 
AnswerRe: Shell Integration problem Pin
CPallini22-Oct-08 0:48
mveCPallini22-Oct-08 0:48 
GeneralRe: Shell Integration problem [modified] Pin
GRLEX22-Oct-08 2:06
GRLEX22-Oct-08 2:06 
QuestionThe cursor does not include the table being modified or the table is not updatable through the curso Pin
V K 222-Oct-08 0:05
V K 222-Oct-08 0:05 
QuestionRe: The cursor does not include the table being modified or the table is not updatable through the curso Pin
David Crow22-Oct-08 3:32
David Crow22-Oct-08 3:32 
AnswerCross-post (1/3) Pin
Wendelius27-Oct-08 9:20
mentorWendelius27-Oct-08 9:20 
QuestionError 1917 RPC_X_PIPE_DISCIPLINE_ERROR 'The RPC call completed before all pipes were processed' with WriteEncryptedFileRaw() Pin
anayskulkarni21-Oct-08 23:57
anayskulkarni21-Oct-08 23:57 
QuestionHow to retrieve password policy settings programmatically ? [modified] Pin
Prince George21-Oct-08 23:47
Prince George21-Oct-08 23:47 
QuestionGraphic tool library advice wanted [modified] Pin
Iain Clarke, Warrior Programmer21-Oct-08 23:00
Iain Clarke, Warrior Programmer21-Oct-08 23:00 
QuestionHow do I copy the contents of a CListCtrl object ? Pin
SherTeks21-Oct-08 22:14
SherTeks21-Oct-08 22:14 
AnswerRe: How do I copy the contents of a CListCtrl object ? Pin
Iain Clarke, Warrior Programmer21-Oct-08 22:38
Iain Clarke, Warrior Programmer21-Oct-08 22:38 
There is no LB_CLONE_FROM_OTHER list control message, so you're going to have to roll your sleeves up and do it yourself.

If you already have code to fill up the first control, can you move that into a function, and call it with either CListCtrl * or a dlg ID?

Or if this will change over time, write a cloning function? Get the number of columns / rows of the first control, set the second one to the same. Call GetItem a lot on the first control, and SetItem a lot on the second?

You'll have to be careful. One thing I can think of is an items lParam - if it is a casted pointer, can you use the same pointer? Or make a new object to point to? Etc. That sort of thing is application specific though.

Iain.

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.