|
The windows media player control can play it, I wonder if there's a visualisation that just shows the waveform ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: I wonder if there's a visualisation that just shows the waveform
yes, the "oscilloscop" visualization does it. but i am not sure you can select it from outside WMP...
|
|
|
|
|
Hello,
I am facing a unique problem, that even if I include the header file, yet the class is not recognized. It gives me the error missing ; before (some variable) and errors generated subsequently. Please help.
Thanks and regards,
Software Developer
Sanjay Khapre
|
|
|
|
|
See if class declaration is suppressed by some preprocessors.
Can you show how class is declared,included and used ?
|
|
|
|
|
It is difficult to help without actually seing the code. Post the code for the class declaration and where it is used.
You probably forgot to add ; at the end of the class or you mispelled the name (remember it is case-sensitive).
|
|
|
|
|
Hello,
I have attached the code. I have a dialog box in which I am placing a RichEdit box as a child window control. Without creating an object of RichEdit, how can I set its position inside its parent, that is the dialog box?
<br />
# include "MyRichEdit.h"<br />
class CMyRichEdit ;<br />
<br />
class CTrialRichEditBreakDlg : public CDialog<br />
{<br />
public:<br />
CMyRichEdit m_RichEdit ;<br />
CTrialRichEditBreakDlg(CWnd* pParent = NULL);
<br />
enum { IDD = IDD_TRIALRICHEDITBREAK_DIALOG };<br />
<br />
<br />
protected:<br />
virtual void DoDataExchange(CDataExchange* pDX);
<br />
protected:<br />
HICON m_hIcon;<br />
<br />
virtual BOOL OnInitDialog();<br />
afx_msg void OnPaint();<br />
afx_msg HCURSOR OnQueryDragIcon();<br />
afx_msg void OnDrawCircle();<br />
DECLARE_MESSAGE_MAP()<br />
};<br />
Thanks a ton. And what about my previous query posted, that is of not being able to trap F9 key in this same application, I have explained it in my previous query.
Sanjay.
-- modified at 5:44 Wednesday 23rd August, 2006
-- modified at 5:50 Wednesday 23rd August, 2006
-- modified at 6:01 Wednesday 23rd August, 2006
Software Developer
Sanjay Khapre
|
|
|
|
|
where it is giving error ?
If Its CMyRichEdit.. , you need to show its declaration header file.
|
|
|
|
|
Which I have already done.
Didn't you see the first line?
Software Developer
Sanjay Khapre
|
|
|
|
|
SanjaySMK wrote: Didn't you see the first line?
Yes , I seen it.
But I wanted you to show, header containing class declaration of CMyRichEdit.. Which you included as first line
|
|
|
|
|
Dear friends,
I use an edit control as a message box. I want to change the color of writing in edit control (default color is black). Do you know how to do that?
Thank you,
Cheers,
Joy Anne
|
|
|
|
|
|
I want ot color the splitter and i want ot look it as flat.
how can i do it?
|
|
|
|
|
create the subclass for splitter control. After that create the event wm_ctl_color. Here you can assign the color whatever you want.
|
|
|
|
|
Hi all,
In Dialog based application user has to enter the file name to continue the next operation.If he enters any special chararacters like " ?,$,@",or integers, how to validate them.
he should not enter any varibles or any special characters.
Regards,
Harish
|
|
|
|
|
Use the strtok() function
|
|
|
|
|
strtok sucks. It's not thread-safe for a start. It should be avoided.
Steve
|
|
|
|
|
I know it sucks, it's also a nuicance when it comes to UNICODE and MBCS builds, but it's a good starting point for somebody who is learning about string managment.
|
|
|
|
|
reddy harish wrote: user has to enter the file name
How does he enter the characters ? If it is in a edit box, then I would go for overriding the control. You override the OnChar function, and check first if it the character entered is a valid one (if ( (NewChar>'a') && (NewChar<'z') ) , of course you have to check for upper case characters also). If the character is valid, then you can call the OnChar function from the base class. If not, don't call the function and the character will never appear in the edit box. This is nicer than validatating the string after inserting all the data.
-- modified at 2:31 Wednesday 23rd August, 2006
BTW, did asked a question yesterday about file validating also ? Did you look at the answer of Christian Chraus ? About the CFileDialog[^]? It is in general the way to go when you want the user to open a file. And it is much more user friendly than having the user to enter the complete file or path.
|
|
|
|
|
|
Dear Moonen,
thanks for ur reply,
As iam a begginer of MFC i want to know how to override the control
|
|
|
|
|
As far as I can see there are 4 areas an Icon can be displayed: windows explorer, System tray, Taskbar and Title bar. I know it's possible to customize the icons for explorer, the sys-tray and for the title-bar, but is it possible to set an icon for the task-bar? i.e. I want to show a different icon in all four locations. At the whatever icon is show on the title-bar is the same as that of the task bar.
|
|
|
|
|
|
Thanks for the link Rage, but its partly because of this article that I asked the question. I have used his idea and implemented it into a class of mine. Now I don't mind the Titlebar icon to animate, but the Taskbar becomes a little annoying after a while. So I thought it useful to have the option of disabling it.
his article doesn't have my answer. Setting the icon for one, sets the icon for both. I have yet to find a way to adjust one without affecting the other.
|
|
|
|
|
waldermort wrote: Setting the icon for one, sets the icon for both
Now this is something I did not realize. I'll try and have another look at your problem.
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
|
|
|
|
|
I'm thinking maybe I would have to hook a dll/function call somewhere to prevent the taskbar from locating the icon in the default place. I will take a better look at it when I have some time.
|
|
|
|