|
Aren't you able to order the points? Is the polygon convex?
Try also the Graphics forum [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
CPallini wrote: Is the polygon convex?
The polygon can be of any type.
The points may not be in order most of the time.
I will post in Graphics section
Thanks for help!!
Best Regards,
Suman
|
|
|
|
|
You need Convex Hull of points to find a polygon including all points.
-Saurabh
|
|
|
|
|
Saurabh.Garg wrote: You need Convex Hull of points to find a polygon including all points.
Hi,
Thanks for the help.
Is there function to get convex hull of points from set of polygon points which is not in order.
Thanks,
Suman
--
"Programming is an art that fights back!"
|
|
|
|
|
hi guys. just started with visual c++ mfc. im currently making an SDI app with two splitters. 1 vertical and 1 horizontal. i used the SDI (windows explorer) wizard but added one horizontal splitter. leftview is a treeview control, lower right is listview control. for the upper right, the msflexgrid control. i used the "add to project-components and controls-registered activex comps" for the flexgrid. how can i obtain a pointer to my flexgrid (for manipulation)? like when i'll click on a tree node, i want to do something with my flexgrid.
any help will much be appreciated. and sorry for my english...thanks.
|
|
|
|
|
|
thanks Suman. but i think its only applicable to dialog based apps, im not sure. i dont have a form where i could put/draw/drag the flexgrid control to, since its SDI.
regards,
_chew
|
|
|
|
|
Hi,
How you are creating flxgrid in your application?
Are you creating in runtime?
Depending on that method we will try to get pointer.
Thanks,
Suman
|
|
|
|
|
Now I've got a problem. I've got an assertion error...
If i'll ignore the assertion message, the app will continue to load showing only two columns and two rows in the flexgrid area.
What i did was i added a class that inherits CMSFlexGrid.
This is the overriden function:
BOOL CGrid::PreCreateWindow(CREATESTRUCT &cs)
{
return CMSFlexGrid::PreCreateWindow(cs);
}
I tried to follow the ways the treeview and listview ctrls are attached to the other panes of my app. Im just confused why flexgrid could not be drawn in the upper right pane.
Thanks,
_chew
|
|
|
|
|
|
Hey, I found a very wonderful editable GridCtrl from codeproject by Chris Maunder. It works fine with my app. I already have a treeview in the left portion, a listview on the bottom right and the grid control on the upper right. during OnCreate, i was able to add column headers to the three panes. still, my old problem exists. i cant obtain a grid control pointer from the treeview side. like when i'll click a tree node, i'll modify the grid control control.
there are many tips and tricks on the net but nothing works for me.
any idea?
|
|
|
|
|
Hi,
I think there will be some way to access the control you use..
The CDataGrid[^] is also a ncie control, for which you need to create an instance to access it.
If you still have some problem post it
Thanks,
Suman
|
|
|
|
|
Hello every one. This is my first post for help..
I need to send email through VC++ with the SSL and ESMTP Authentication and with file attachments
Using CSMTP email class i was not even able to connect these ESMTP serve.Please help
|
|
|
|
|
Hi,
How to Change the name of the child window frame in an MDI application(but not main frame name)...
Manjunath S
GESL
Bangalore
|
|
|
|
|
CWnd::SetWindowText(..) or WM_SETTEXT
led mike
|
|
|
|
|
Hi !
I was trying to add a amall icon on my application i used WM_SETITEM msg but it is not working.
Win Mob 5.0 Smart Phone SDK & VS 2005 IDE.
For this i have written a code
g_hIcon=LoadIcon(g_hInst,MAKEINTRESOURCE(IDI_ICON1));
SendMessage(hWnd,WM_SETICON,ICON_BIG,(LPARAM)g_hIcon);
|
|
|
|
|
What value does g_hIcon have? What does SendMessage() return?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
g_hIcon has Value 0x7c076be4
SendMessage returns -2146982652
hWnd=0x7c076c50
|
|
|
|
|
Iam using MFC .I have a problem about it .I want to question about event or funtion after clik "open" button in dialog "Open,Save,Save as".Please.
Thanks
|
|
|
|
|
nvphap wrote: I want to question about event or funtion after clik "open" button...
You need to assign a handler to the BN_CLICKED message. If you have VS6, use ClassWizard (Ctrl+W).
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Is that possible? I mean he is talking about CFileDialog ...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
I assumed he was talking about the button that would construct a CFileDialog object. In any case, a hook can be provided to handle the clicking of the OK or Open button before the Open dialog is dismissed.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
DavidCrow wrote: In any case, a hook can be provided to handle the clicking of the OK or Open button before the Open dialog is dismissed.
Actually I thought about that solution. Probably he can also roll his own class derived by CFileDialog and then override whatever he needs.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
please,give me a way to post images .I think that it will easier for we understand together
|
|
|
|
|
There are tons of Web sites that allow this. Have you searched for one?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|