|
Hi
I have few edit boxes in a Dialog window.
Now I want to process the characters entered in each edit boxes.
I dont want to use OnChar or OnKeyDown becouse it will process all those messages to the main window. I just want to process the messages only when user types something in the edit box. How can I do that.
btw: this is for finding some unwanted characters like @#@#!@$ being entered in the certain edit box.
Thanks
Regards
The Best Relligion is Science.
Once you understand it, you will know God.
|
|
|
|
|
Hi,
One solution is to implement the WM_CHANGE message. Each time it is called you will check the edit boxes...
Well... I am a beginner ...
|
|
|
|
|
Hi
Thankyou.
It will work. But I want to get each character by character entered into the edit box.
Regards
The Best Relligion is Science.
Once you understand it, you will know God.
|
|
|
|
|
maybe you should read an article about a validating edit control?
click me
|
|
|
|
|
Enhanced Focus Edit Control with Input Filtering
[^]
My control does filtering of input (also via paste operations). IIRC, I could not get the WM_CHAR message to reflect from the control, so I used PreTranslateMessage on the edit control class itself, so I would only get WM_CHAR messages for that control.
Peace!
-=- James
Tip for inexperienced drivers: "Professional Driver on Closed Course" does not mean "your Dumb Ass on a Public Road"! Articles -- Products: Delete FXP Files & Check Favorites
|
|
|
|
|
Hi
I tried it but I was concerned about the processing.
Anyway I think I will be doing this
Thankyou for putting up suggestion
Regards
The Best Relligion is Science.
Once you understand it, you will know God.
|
|
|
|
|
Hi Friends,
There are lot many articles available on message routing.Still I am having some basic quries:
please consider 2 cases for messages (windows messages & Command messages)
Q 1. In SDI/MDI, how routing takes place?
Q 2. In case of command message if a class is handling that, What about other classes in route.
Q 3. It seems that, some messages are not handled by framework, I did not get them even after installing windows hooks (like WM_LBUTTONDOWN on caption bar) Why it so?
Vikram S
|
|
|
|
|
I wana to write a application using MFC & Nero sdk, this application will just simply burn selected folder into CD/DVD-rom, but after I read though the sdk manual and play around a sample application called NeroFiddles comes with sdk, but it can only burn files. How can I burn directories? any ideas everybody? sample code will be appreciated.
|
|
|
|
|
has any1 gone thru scanlogd?
i downloaded the source and binary. compiled without error. now when i run the binary and try to nmap on the machine, nothing happens. its using syslog.. can any1 tell me where to syslog log? or how to use scanlogd on windows?
|
|
|
|
|
void CAboutDlg::OnLButtonDown(UINT nFlags, CPoint point)
{
if(nFlags == MK_LBUTTON)
{
MessageBox("hi");
}
CDialog::OnLButtonUp(nFlags, point);
}
works beautifully, my question is what coding should i use so that the message box appears only if the left click is on a Static Text( ex: IDC_STATIC3) ... i understand how to detect the location of the click using point, but can i also use the point for detecting the actual ID being clicked on, not just the point on the screen?
|
|
|
|
|
|
persian_boi wrote:
CDialog::OnLButtonUp(nFlags, point);
I hope this is a typo, you are calling the wrong base class. It ought to be OnLButtonDown
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain)
|
|
|
|
|
I need to do a code on editing of .avis & .mpegs.
Where can i find such codes around or does anyone has come across such cases?
Can someone show me some source codes on how to do basic editing like cutting and pasting of video frames in .avis & .mpegs format.
Tks
|
|
|
|
|
if your editing only does cutting & pasting of frames, you could try directx sdk from microsoft, by using dx sdk you can snapshot frames from video stream, after that any image editor will help you with graph editing.
|
|
|
|
|
i hav installed directx sdk....but how do i snapshot frames?
i cant seem to find tat function
|
|
|
|
|
hi,
in vs.net's installation tools, i can see there is a "Content File" for a project output. anyone know can i set a output file as content file? so that, installation tools will include it in the installer automatically?
actually, i want to include the map file in the installer. but, i dont want to include the exact file as there are 2 diff. files for release and debug.
any help?
thanks,
jim
|
|
|
|
|
Hello, everyone.
I'd like to develop ".exe" file by using VC++ 6 SP5 with Windows XP SP1.
The content is that during executing this program, when right-click is done over the icon of file or folder in Explorer,
the user can't select item(s) of popup menu(context menu).
This "can't select" means that item(s) such as "open" or "edit" etc, is/are disapeeared completely.
Or the name of item is appeared with gray and unable to select.
I read topics in "Shell Programming", but I could't find helpful topic about above method.
Is it some experienced in development?
Or are someone known method?
If knows, and helpful www link(s) also exist(s), I'm glad.
Please tell me.
|
|
|
|
|
|
>wisecrack:
Thank you for answering.
By the way, after posting message I looked into more information.
And I found that "CMenu:CEnableMenuItem" may be right.
My goal is to develop MFC project of dialog base.
For example, here is a goal that when right-clicked over the icon of text file in Explorer,
the item "cut" is glay.
The below is the method.
I created new MFC project of dialog base.
(The project name is "Click".)
And I added below code of "OnRButtonDown" with Class Wizard into "CClickDlg.cpp" file:
===
void CClickDlg::OnRButtonDown(UINT nFlags, CPoint point)
{
// TODO:
CMenu *hMenu;
CWnd* cwParent = GetParent();
DWORD dwStyle = cwParent->GetStyle();
hMenu = cwParent->GetSystemMenu(FALSE);
hMenu -> EnableMenuItem(ID_EDIT_CUT, MF_GRAYED);
CDialog::OnRButtonDown(nFlags, point);
}
===
And including "afxres.h" in the first of "CClickDlg.cpp" file, I built "Click.exe" file.
With "Click.exe" executing, I executed "explorer.exe" and I clicked right button
over a certain text file.
But the item "cut" wasn't glay.
Which point of my method is wrong?
If there is another good idea or programming flow, please tell me.
|
|
|
|
|
Many Download Managers allow you to pause and resume your download, some are even able to resume after being disconnected.
Now my question is how do they pick up where they left off? I'm guessing there is some standard information sent in the request as to where the server should start reading from the file.
|
|
|
|
|
Well, it isn't even remotly connected to Visual C++ but what the heck...
If you are talking about FTP download managers the some (most) servers support the REST (restart) command. Check the RFC for more info.
And if the paths that I have followed/have tread against the flow/there is no need for sorrow
I am coming home
Return, Crüxshadows
|
|
|
|
|
|
Yes, I believe it is HTTP 1.1 that supports resumable downloads.
Michael Dunn wrote:
Come quietly or there will be... trouble.
Robocop?
Peace!
-=- James
Tip for inexperienced drivers: "Professional Driver on Closed Course" does not mean "your Dumb Ass on a Public Road"! Articles -- Products: Delete FXP Files & Check Favorites
|
|
|
|
|
I need the main window of my program (created by DialogBox() function) to become hidden already on the startup. If I call ::ShowWindow(hWnd,SW_HIDE) when I receive WM_CREATE or WM_INITDIALOG messages, it doesn`t work because these messages are regeived before dialog is shown. So how can I do it? I can not write consele app because I will need to show the window eventually.
|
|
|
|
|
Hide your main window...???
Interesting...you could try using a similar approach to system tray windows. Make a parent window using WS_EX_TOOLWINDOW and have your main window a child of this window.
How do I print my voice mail?
|
|
|
|