Click here to Skip to main content
16,012,316 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: quick SDI question Pin
PJ Arends15-Jul-02 16:41
professionalPJ Arends15-Jul-02 16:41 
GeneralI cant thank you enough!!!! Pin
ns15-Jul-02 17:00
ns15-Jul-02 17:00 
GeneralRe: I cant thank you enough!!!! Pin
PJ Arends15-Jul-02 17:14
professionalPJ Arends15-Jul-02 17:14 
Generaltrouble with movewindow and MDI scrolling Pin
ns15-Jul-02 7:45
ns15-Jul-02 7:45 
GeneralSetting font Pin
Al_Pennyworth15-Jul-02 7:20
Al_Pennyworth15-Jul-02 7:20 
QuestionChange font of CFileDialog ? Pin
dlhson15-Jul-02 7:15
dlhson15-Jul-02 7:15 
QuestionSocket problem ? Pin
dlhson15-Jul-02 7:13
dlhson15-Jul-02 7:13 
QuestionRegion into a polygon? Pin
phruby15-Jul-02 7:13
phruby15-Jul-02 7:13 
I've created two regions with the CRgn class and the function CreatePolygonRgn. I then use the CombineRgn function to take the intesection of the two regions created with CreatePolygonRgn. I now need to turn the resulting region into a polygon.

I've been trying to use the GetRegionData function to return the points that make up the region. But I'm not having a success. The function keeps returning NULL for the RGNDATA pointer. Here is what I did:

RGNDATA* pRgnData;
x=aRgn.GetRegionData(NULL,1);
y=aRgn.GetRegionData(pRgnData,x);

pRgnData is still NULL.

What am I doing wrong?Confused | :confused:
AnswerRe: Region into a polygon? Pin
Scott H. Settlemier15-Jul-02 10:06
Scott H. Settlemier15-Jul-02 10:06 
GeneralRe: Region into a polygon? Pin
phruby15-Jul-02 10:21
phruby15-Jul-02 10:21 
GeneralPrint something graphical on a printer Pin
Qadddd15-Jul-02 7:05
Qadddd15-Jul-02 7:05 
GeneralRe: Print something graphical on a printer Pin
Mike Nordell15-Jul-02 20:11
Mike Nordell15-Jul-02 20:11 
GeneralRe: Print something graphical on a printer Pin
Qadddd15-Jul-02 21:15
Qadddd15-Jul-02 21:15 
GeneralRe: Print something graphical on a printer Pin
Mike Nordell16-Jul-02 8:02
Mike Nordell16-Jul-02 8:02 
GeneralRe: Print something graphical on a printer Pin
Qadddd17-Jul-02 7:46
Qadddd17-Jul-02 7:46 
Questionhow to convert int to CString?? Pin
EBerlin15-Jul-02 7:06
EBerlin15-Jul-02 7:06 
AnswerRe: how to convert int to CString?? Pin
Chris Losinger15-Jul-02 7:07
professionalChris Losinger15-Jul-02 7:07 
GeneralRe: how to convert int to CString?? Pin
Anonymous15-Jul-02 7:32
Anonymous15-Jul-02 7:32 
AnswerRe: how to convert int to CString?? Pin
Qadddd15-Jul-02 7:13
Qadddd15-Jul-02 7:13 
GeneralRe: how to convert int to CString?? Pin
EBerlin15-Jul-02 7:33
EBerlin15-Jul-02 7:33 
GeneralAdd text in CEdit Pin
Raphael Kindt15-Jul-02 6:42
Raphael Kindt15-Jul-02 6:42 
GeneralRe: Add text in CEdit Pin
Roman Fadeyev15-Jul-02 7:00
Roman Fadeyev15-Jul-02 7:00 
GeneralRe: Add text in CEdit Pin
Raphael Kindt15-Jul-02 8:10
Raphael Kindt15-Jul-02 8:10 
GeneralMDI Child Windows Pin
sbelow15-Jul-02 6:13
sbelow15-Jul-02 6:13 
Questionhow do l plot graphs in MFC Pin
citress15-Jul-02 5:37
citress15-Jul-02 5: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.