|
I'm not a multimedia seasoned pro, but have a look at waveOutSetVolume() or any of the other functions under Windows Multimedia in the Platform SDK in the MSDN library. That's where I'd start.
J
|
|
|
|
|
Thanks for pointing me in the right direction Jamie.
Cheers,
Paul
|
|
|
|
|
I am having an intermittent problem with a DLL function call and thought that the PWALK Platform SDK tool would help me debug things.
However although I got the project to compile it doesn't seem to work. I am running on NT and there is an MSDN article that suggests this only works in 16 bit land. Has anyone got this to work on NT, or has used an equivalent tool?
Ta
Jim
|
|
|
|
|
Has anyone had any experience trying to display CMYK Color Space TIFFs using GDI+ and the Image/Bitmap class?
The TIFF when displayed has the colors all messed up. A corresponding TIFF in the RGB color space displays just fine.
Thanks
Andy Brace
SW Development Engineer II
Qwest
A clear conscience is usually the sign of a bad memory.
|
|
|
|
|
Hi,
I have a dialog having several conrols eg. CEdits, CListbox, and CGridCtrls (MFCGridCtrl in my problem).
When I want to click a button in my dialog
First I want to get a list of all controls and then
get handles/pointers to a certain kind of control (eg CGridCtrl).
I tried GetActiveWindow, GetNextWindow, FindWindow("CGridCtrl", NULL)
but I could not manage.
Any idea?
|
|
|
|
|
Try
CWnd* CWnd::GetDlgItem (int nID) const;
or for HWND handle
void CWnd::GetDlgItem (int nID, HWND* phWnd) const;
|
|
|
|
|
You can make use of GetNextWindow() and then check the pointer using
if (pWnd->IsKinfOf(RUNTIME_CLASS(CGridCtrl))
{
CGridCtrl* pGrid = (CGridCtrl*)pWnd ;
}
Roger Allen
Sonork 100.10016
If I'm not breathing, I'm either dead or holding my breath.
|
|
|
|
|
I'm using OpenGL to help me design 3D graphics software. I'm just practising now. I used the tutorial on nehe.gamedev.net to create my openGL window. How can I add stuff like dialog boxes and push buttons and menus on the screen which will execute different commands to the software. I have a book on visual C++, but when I'm using OpenGL as my API, that book seems useless to help me with the non graphics part. It all seems so different. Please tell me if I have to do everything using only OpenGL syntax now that I've made the window with OpenGL?? Cause then I'm guessing I'd need the OpenGL book.
|
|
|
|
|
First there are several samples here:
http://www.codeproject.com/opengl/
The most common practice is to have a display window showing the OpenGL as a child to the application (or frame/view/whatever.) Buttons etc are not in that window.
|
|
|
|
|
You can find some samples and tutorials in the MSDN...
Regards...
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
http://devcentral.iticentral.com/articles/C++/openGL/default.php
http://nehe.gamedev.net/
|
|
|
|
|
|
I believe you'll find none of the NeHe tutorials use MFC. We are building an OpenGL app and do not use MFC, and I create dialogs and so on in the standard, non-MFC way. You can find examples here that build a framework for GL using MFC, or you'll need to learn Win32, and maybe buy Petzhold.
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
None of the tutorials use MFC, just the plain win32 API. However, I'm pretty sure there is an MFC framework example on the site included. If you understand OpenGL, then creating MFC OpenGL apps shouldn't be much of a problem. Be prepared though, 99% of the OpenGL examples you'll find around are going to be win32. Learning win32 is a great bonus though, and there's no better book than Petzold.
Simon
Nobody does chicken like MFC
Sonork ID 100.10024
|
|
|
|
|
Check out the OpenGL section of this and at Code Guru. There are several very good examples that use MFC and support printing and print preview. They worked for me.
|
|
|
|
|
hello
i have created an application (e.g.- a.exe)
& i want to open or run it from another application (e.g.- b.exe) how can i do that ?
regards
Chanda.com
|
|
|
|
|
CreateProcess, ShellExecute, ShellExecutEx
Normski. - Professional Windows Programmer
|
|
|
|
|
|
Thanx a lot for immediate reply.
Chanda.com
|
|
|
|
|
Is there anything that can help printing on A4 pages?
What I would like to do print on for an
application written in VC++. Data are represented in table and charts
(the charts are just image). If the table is too long for an A4, it's
required to break the pages. I am Looking Excel Type of page break
Mechanism.
So I need to deal with the format and pagination either in VC++
Any suggestions?
Thanks in advance
Nag
|
|
|
|
|
You need to Know the width and the heigth of the page.
You Know the properties of the page that the user selected, for example Letter or A4, the size is standard.
Okay, when you are printing, through a printer or the preview, you need to calculate the space that you need for show the next Column, if the rigth point of the next column is greather of the page less a margin, you need to do a page Break.... (The same for the height). Is not easy but works...
Regards
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
Hi, I have troubles to set an icon on the title bar of my modeless dialog box. I tried SetClassLong () after I'd created the dialog but before it became visible. It's working well except all message boxes I create subsequently have the same icon on the title bar. They are obviously created from the same system dialog box class. Not mentioning possible further creation of other dialogs. How would I go about this problem? Anybody knows?
|
|
|
|
|
Try this:
In the constructor of your dialog class, change: m_hIcon = AfxGetApp()->LoadIcon(IDR_YOURICON)
And this I think will change the icon of your dialog title bar
"Needless redundancy is the hobgoblin of software engineering." - Peter Darnell
|
|
|
|
|
But I'm not using MFC
|
|
|
|
|
I set an icon for a dialog as follows :
m_hIcon = (HICON)LoadImage(AfxGetApp()->m_hInstance, MAKEINTRESOURCE(IDI_SELECTSTRUCTURE), IMAGE_ICON, 16, 16, LR_DEFAULTCOLOR) ;
SetIcon(m_hIcon, FALSE);
This is done in the InitDialog()
Roger Allen
Sonork 100.10016
If I'm not breathing, I'm either dead or holding my breath.
|
|
|
|