|
Ofcourse... You have to use a mouse hook.
See this[^]
- NS -
|
|
|
|
|
Hi,
Am developing a CAD application using OpenGL and MFC. But the PDF output's clarity from our application is very poor. We are using DIB. Is it possible to do all using GDI as we are doing in OpenGL. And the main thing am dealing the drawing of Complex Polygons using Tessellation in OpenGL. But how to do it in GDI. And if i selected GDI, will the PDF's clarity is good? Suggestions please..
With Regards,
Sangeetha.
|
|
|
|
|
One suggestion is that you can go for EMF or WMF.
- NS -
|
|
|
|
|
Please suggest me some links regarding the EMF and WMF. My client is asking for high quality pdf output.
With Regards,
Sangeetha.
|
|
|
|
|
That is only image formats... you can find more details in MSDN itself.
- NS -
|
|
|
|
|
Hi,
If i develop using GDI, Will i could scale and pan the picture? As well as Printing with high resolution?
Can anyone tell me the ideas?
With Regards,
Sangeetha.
|
|
|
|
|
Hello everyone,
There is a ncb file under the working directory of my Visual Studio 2005 project. It is very big, almost 7M. I am wondering,
1. what is the function of this file?
2. If I want to share code with someone else remotely, could I remove this file and send only other files? (sending 7M file through slow internet connection is time consuming)
thanks in advance,
George
-- modified at 3:25 Friday 31st August, 2007
|
|
|
|
|
ncb files and clw files carry information about your workspace and the class wizard. this will be created (updated) when ever you open the work space.
try the following things.
close the application,
delete ncb file,
and again open it.
you will find the file created.
i think your problem is solved now.
|
|
|
|
|
I have tried that it works, thanks chandu004!
regards,
George
|
|
|
|
|
please indicate some key word like "SOLVED" in your main question, if it is solved.
|
|
|
|
|
Sorry chandu004, it is my carelessness. This question is solved from your solution. Thanks!
regards,
George
|
|
|
|
|
what i meant was, select your main question, go to modify,
and rename your subject by adding "SOLVED" at the beginning of your subject.
i request all the members to follow this idea.
thanks.
|
|
|
|
|
Thanks chandu004,
I have followed your suggestion.
regards,
George
|
|
|
|
|
thanks george,
lets circulate this idea to all the members such that, this will become a habbit and practise.
this idea is for a good and convinient maintenence of the forum.
|
|
|
|
|
You are welcome chandu004,
I think even for old members, they may not fully be aware of this habit. If in CodeProject newsletter or something, this message could be delivered, it will be great!
Changing topic to *solved* only takes poster one minute, and will benefit a lot of people who have similar issues.
regards,
George
|
|
|
|
|
chandu004 wrote: i request all the members to follow this idea.
I like it!!!
Russell
|
|
|
|
|
Hi,
I just switched to Visual Studio 2005 from VC++ 6.0 and I usually added the dialog overrides like OnOk, OnInitDialog etc. to my file from a wizard. I can't find any way to do this in 2005.
I can see the message events and control events in the properties editor when my resource is displayed but not the overrides to OnInitDialog etc.
Is there a wizard for this?
Thanks
|
|
|
|
|
You need to use classview for that.
Refer this[^] article.
Prasad
MS MVP - VC++
|
|
|
|
|
Thanks Prasad but I saw the "Project -> Add Function" menu when in class view but it does not give you a list of the CDialog functions.
Of course I can add the function overrides manually but it was a nice time saver.
|
|
|
|
|
al2500 wrote: Of course I can add the function overrides manually
No, when I said, "Use class view", then it meant, right click class, go to properties, and use properties window to override the functions. You may not feel comfortable initially, due to use ot previous versions of VS.
Read, article mentioned in my previous post. It should give you some idea.
Prasad
MS MVP - VC++
|
|
|
|
|
AS prasad said, right-click the class and select properties. You can also get to this properties display if your cursor is inside the source for the class definition. Once you have the properties windows, look at the buttons along the top of the properties page. There are ones for Overrides, Message Handlers and Events. Most of the old VC6 things are listed under one of those three buttons.
J
|
|
|
|
|
hello to every one..
i need to know how to create a dialog box with controls at runtime?
plz help me..
vikram..
|
|
|
|
|
CreateDialogIndirect API may help you.
Have a look here[^]
- NS -
|
|
|
|
|
In VC 2005, I create the dialog project, and add the radio button, and then set the dialog background with picture.
The functions like below:
CTestBrushDlgDlg::CTestBrushDlgDlg(CWnd* pParent /*=NULL*/)
: CDialog(CTestBrushDlgDlg::IDD, pParent)
{
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
m_nullBrush.CreateStockObject(NULL_BRUSH);
CBitmap bitmap;
bitmap.LoadBitmap(IDB_BACKUP) ;
m_brush.CreatePatternBrush(&bitmap);
}
HBRUSH CTestBrushDlgDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
// TODO: Change any attributes of the DC here
if (nCtlColor == CTLCOLOR_STATIC )
{
pDC->SetBkMode(TRANSPARENT);
return m_nullBrush;
}
return (HBRUSH)(m_brush.m_hObject);
}
1. when setting "Character Set" of dialog project property to "Use Unicode Character Set", this radio background shows the picture, not transparent.
2. when setting "Character Set" of dialog project property to "Use Multi-Byte Character Set", this radio background is transparent,it works fine.
How to resolve problem 1.
Thanks,
Recky
fanasus@gmail.com
-- modified at 1:56 Friday 31st August, 2007
|
|
|
|
|
I want to get the WiFi information (eg. signal strength) from code (eg. C++, C#).
OS may be XP, CE5.0 or above.
I know it can be related to ndisuio.
Where can I get more coding information?
Thanks!
|
|
|
|