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

C / C++ / MFC

 
GeneralRe: CRecordSet->MoveFirst() exception Pin
Toni7818-Jul-04 7:15
Toni7818-Jul-04 7:15 
GeneralRe: CRecordSet->MoveFirst() exception Pin
Scozturk18-Jul-04 7:23
professionalScozturk18-Jul-04 7:23 
GeneralRe: CRecordSet->MoveFirst() exception Pin
Alexander Wiseman18-Jul-04 9:05
Alexander Wiseman18-Jul-04 9:05 
GeneralLOGPEN Pin
Trollslayer18-Jul-04 6:47
mentorTrollslayer18-Jul-04 6:47 
GeneralRe: LOGPEN Pin
Trollslayer18-Jul-04 8:37
mentorTrollslayer18-Jul-04 8:37 
GeneralRe: LOGPEN Pin
Alexander Wiseman18-Jul-04 9:06
Alexander Wiseman18-Jul-04 9:06 
GeneralRe: LOGPEN - resource usage warning Pin
PJ Arends18-Jul-04 9:06
professionalPJ Arends18-Jul-04 9:06 
GeneralRe: LOGPEN Pin
Alexander Wiseman18-Jul-04 8:56
Alexander Wiseman18-Jul-04 8:56 
Hello,

Are you using the CPen class, or simply the Win32 GDI function CreatePen?

If you are using the CPen class, you get a LOGPEN like this:
<br />
CPen myPen;<br />
myPen.CreatePen(PS_SOLID, 1, RGB(255,0,0));<br />
<br />
//Get LOGPEN:<br />
LOGPEN myLogPen;<br />
myPen.GetLogPen(&myLogPen);<br />

If you then wanted to change the color of the pen, you could change the LOGPEN property, delete the CPen object and then use FromHandle or CreatePen, passing the LOGPEN back to the object.

If you are using the Win32 GDI function, I think it returns an HPEN, in which case I'm not very clear about what your question is.

I realize the stuff I said in here is pretty basic and that you probably have a more complicated question, so maybe I just misunderstood it. In any case, if you can explain a little more I'll see if I can help you.

Sincerely,
Alexander Wiseman

Est melior esse quam videri
It is better to be than to seem
GeneralGet a pointer from an RVA Pin
Toni7818-Jul-04 6:43
Toni7818-Jul-04 6:43 
GeneralRe: Get a pointer from an RVA Pin
bikram singh19-Jul-04 12:55
bikram singh19-Jul-04 12:55 
GeneralProblem Creating a server on the local PC using CAsyncSocket Pin
femi ashiru18-Jul-04 6:42
femi ashiru18-Jul-04 6:42 
GeneralRe: Problem Creating a server on the local PC using CAsyncSocket Pin
valikac18-Jul-04 13:59
valikac18-Jul-04 13:59 
GeneralDirectory Date/Time Pin
Atlence18-Jul-04 4:04
Atlence18-Jul-04 4:04 
GeneralRe: Directory Date/Time Pin
Toni7818-Jul-04 7:32
Toni7818-Jul-04 7:32 
GeneralRe: Directory Date/Time Pin
Atlence18-Jul-04 14:19
Atlence18-Jul-04 14:19 
GeneralRe: Directory Date/Time Pin
Atlence2-Apr-05 12:55
Atlence2-Apr-05 12:55 
GeneralRe: Directory Date/Time Pin
Toni7829-Apr-05 13:30
Toni7829-Apr-05 13:30 
GeneralRe: Directory Date/Time Pin
Toni789-May-05 6:42
Toni789-May-05 6:42 
GeneralDialog Problem Pin
Kunal Shetye18-Jul-04 2:44
Kunal Shetye18-Jul-04 2:44 
GeneralRe: Dialog Problem Pin
Alexander Wiseman18-Jul-04 3:22
Alexander Wiseman18-Jul-04 3:22 
GeneralRe: Dialog Problem Pin
Kunal Shetye18-Jul-04 8:27
Kunal Shetye18-Jul-04 8:27 
GeneralRe: Dialog Problem Pin
Bob Stanneveld18-Jul-04 3:24
Bob Stanneveld18-Jul-04 3:24 
QuestionDevice Contexts usage? Pin
0v3rloader17-Jul-04 23:02
0v3rloader17-Jul-04 23:02 
AnswerRe: Device Contexts usage? Pin
Jörgen Sigvardsson18-Jul-04 0:07
Jörgen Sigvardsson18-Jul-04 0:07 
GeneralRe: Device Contexts usage? Pin
0v3rloader18-Jul-04 0:27
0v3rloader18-Jul-04 0:27 

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.