|
Hi
I need an example for AIFF WAV convertion
thank you
|
|
|
|
|
I asked this I think a very long time ago and cant find the thread. Basically in the create function for a CProgressCtrl,
BOOL Create( DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID );
The nID is something we have to generate via the string table or the resource symbols,since we dont have a control on a dialog or anything... is that correct?
Thanks,
ns
|
|
|
|
|
ns wrote:
since we dont have a control on a dialog or anything
If you don't have any controls except progress bar, then use any integer value for nID.
Tomasz Sowinski -- http://www.shooltz.com
*** Vodka. Connecting people. ***
|
|
|
|
|
I've so far used this format
pView->SendMessage(WM_COMMAND,IDC_BUTTONHIDDEN5,0);
because all I wanted was to trigger the handler. Now i want to give the handler an integer value from the sender to process.
Now if I did put the integer value into the sendMesssage, how would my handler access it? Or cant I use this technique for what I want to do?
Thanks,
ns
|
|
|
|
|
Unfortunately you can't do this thru SendMessage() because it's handled in a stock way.
However, if you're using a doc/view interface (as I think you are), you can call UpdateView() and pass it a "hint" (an application specific DWORD ). The hint allows the receiving view to respond in an appropriate manner (eg: execute the IDC_BUTTONHIDDEN5 handler with a certain context).
The identifier IDC_BUTTONHIDDEN5 leads me to believe you're using the hidden button to respond to app specific messages. This is a common technique, but you may find it easier to use a custom menu command instead of adding buttons to the view/dialog. Just create a new menu resource (I call mine MENU_HIDDEN_COMMANDS ) that contains all your hidden commands. A major benefit to doing this is that your hidden command ids will always be unique, allowing these messages to be posted to any view/dialog. Buttons ids are only guaranteed to be unique within the dialog on which they reside.
Hope this helps!
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Great idea.....
Meanwhile, another sendmessage question...
I want to send the progressbar a 1026 which is PBM_SETPOS. I am trying to see if this sendmessage works since my PBM_STEPIT isnt working I think.
SO how do I send the pos in this API sendmessage (unfortunately its from a VB dll). This is what I have to send and I dont know how to find out what the progressbar recognises as its position (wParam or LParam);
How does one get a hold of such info (sendMessage parameters)
Thanks,
|
|
|
|
|
From VC++'s online help, PBM_SETPOS treats wParam as the new position and ignores lParam (which should be zero).
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Sir,
I am developing the code for rotation of the Rectangle and ellipse in my projects.I have seen hat SetWorldTransform() cannot function in 98.So I am searching for alernative method to rotate my rect.I should be able to save the rotated rect in my List containg the CRect objects.I would be thankful to you if I get The solution as soon as possible as it is to be embedded immediately
..............
I have rotated the rect by using XFORM structure and calculated the new values and have drawn the rotated rect using Polygon() function.But I am unable to modify my List rect object with these coordinates as that draws from the TOPLEFT to BOTTOMRIGHT
Sir u can provide any of the solution.
Waiting for ur reply
|
|
|
|
|
|
It sounds like you will simply need to create a new list and a new structure that can hold the four points that you need to store your rectagle. Or you could use your CRect class and the XFORM class, and you could generate the new rectangle on the fly with a conversion function that returns the translated points.
There is not a whole lot of native support for anything in windows that is not axis aligned.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
Hi
I want to use DirectSound with different file formats.
For Instance I need to play AIFF AIFC formats and some other.
I would appreciate any information regarding my question as well as samples of C++ code for conversions from AIFF AIFC to WAV files
Thank you
Klim
|
|
|
|
|
Hi !
I'm looking for a custom control to provide a "variable watch" like control.
You can find such controls in every environments such as Visual C++ ...
It allows you to display the name and the value of variable selected by the user :
myVariable1 ....................... 0x12485
myVariable2 ....................... 48725
myVariable3 ....................... 1001100
myVariable4 ....................... 0x20 0x42
Does anyone knows where to fing such a control ???
Thanks,
Vince
|
|
|
|
|
THis sounds like the watch window (alt+3 in debug mode)
Roger Allen
Sonork 100.10016
I think I need a new quote, I am on the prowl, so look out for a soft cute furry looking animal, which is really a Hippo in disguise. Its probably me.
|
|
|
|
|
Sure !!!
What i'm looking for is not where to find the watch window of Vc++ !!!
I'm looking for a class witch wrap functions of a watch window in order to be integrated in my own application (something like a Cwnd derivated class...)
|
|
|
|
|
|
Is there any Date Time pickers that would allow you to modify both data and time within the same cell?
|
|
|
|
|
|
I have
p.CreateDispatch("DllwithForm.Class1");
p.CheckingPB(hPbWnd,0,100000);
where CheckingPB is triggering repeated messages to be sent to a control. If I uncomment the release dispatch , I am concerned that it will release the dispatch before all my messages have been sent and received. Is this a fact? Since the app isnt working anyways I cant check it out, but wondered if its disastrous if that line is commented out...
Thanks,
ns
|
|
|
|
|
Help people, my head is spinning.....
I have an application that reads images back from a database into a directory. I need to 'touch' the file time stamp to match the database. The date field to retrieved as a COLEDATETIME and I need to convert this to a FILETIME in order to call the win32 SetFileTime() function.
Anyone any idea's how to perform this conversion (I'm sure is really obvious and the constructor for COLEDATATIME lets you do it the other way around!) --- Anyone any clues?
|
|
|
|
|
Use COleDateTime::GetAsSystemTime, then ::SystemTimeToFileTime.
Tomasz Sowinski -- http://www.shooltz.com
*** Vodka. Connecting people. ***
|
|
|
|
|
That works a treat!
Many Thanks.
Kevin.
|
|
|
|
|
I want to add an entry to the registry that all
users on the machine inherits. Is this possible?
|
|
|
|
|
|
hello,
Is it possible to have CreateDIBSection to allocate the bitmap in system memory rather than in video memory (without DDraw) ?
|
|
|
|
|
CreateDIBSection allocates bitmap data in 'system' memory, not in video memory.
Tomasz Sowinski -- http://www.shooltz.com
*** Vodka. Connecting people. ***
|
|
|
|