|
sweep123 wrote:
The problem is I have deleted the OnOK() button.
No Problem, add a Button in your Dialog Box and Set it ID to IDOK
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
OK almost there!?!
Now have the Multiline and Want Return set to False, dialog stays open when Enter hit.
Now just need the action of the Enter key to Tab onto the next control (i.e. Enter acting like the Tab key to end data entry)
Do you know how to do that please.
Thanks.
|
|
|
|
|
Capture ENTER KEY PRESS using WM_KEYDOWN Message and Then using keybd_event Simulate Tab Key press
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
I have added the OnKeyDown handler, but never enter it when I press a key.
I did add the Left Mouse button down, as a check and that too was never reached.
See part of the MESSAGE MAP
ON_WM_KEYDOWN()<br />
ON_WM_LBUTTONDOWN()<br />
END_MESSAGE_MAP()
Have I missed something out?
Also a bit unsure how to use keybd_event.
|
|
|
|
|
sweep123 wrote:
Have I missed something out?
Every Thing Seems to Correct, May be you have made mistake some where else, Could you send you src Code for checking!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Pressing 'Enter' would cause Dialog box's OnOk() to be called.
One possible work around would be to override the OnOk function in your dialog class and do not call the base class method.
<bold>- Nilesh
<italics>
"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
See here.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
CProjectLDlg::CSkinDlg(CWnd* pParent /*=NULL*/)
: CDialog(CProjectLDlg::IDD, pParent)
{
m_hBmp=(HBITMAP)LoadImage(AfxGetApp()->m_hInstance,MAKEINTRESOURCE(IDB_MAIN),IMAGE_BITMAP,0,0,LR_CREATEDIBSECTION);
m_hWndRgn=DIBToRgn(m_hBmp,0x00ff00,FALSE);
}
----------------------------------------------------------------------------
I coded in .NET 2003
but compiler has return this message.
Constructor initialiar list can use in constructor definition.
Plz resolve this problem
|
|
|
|
|
Keitaro21 wrote:
Constructor initialiar list can use in constructor definition.
I'm certain that's not the actual message - what's the eror number ? Is IDB_NAME a bitmap resource ? Which line is causing the error ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
|
Keitaro21 wrote:
CProjectLDlg::CSkinDlg(CWnd* pParent /*=NULL*/)
What's this ?? The error comes from there probably. For the definition of your class constructor, you have two different names for the class scope (CProjectLDlg) and for the constructor itself (CSkinDlg). I suppose it is not intended, so correct that and use the same name for both.
|
|
|
|
|
<br />
CProjectLDlg::CSkinDlg(CWnd* pParent )<br />
: CDialog(CProjectLDlg::IDD, pParent)<br />
{<br />
m_hBmp=(HBITMAP)LoadImage(AfxGetApp()->m_hInstance,MAKEINTRESOURCE(IDB_MAIN),IMAGE_BITMAP,0,0,LR_CREATEDIBSECTION);<br />
m_hWndRgn=DIBToRgn(m_hBmp,0x00ff00,FALSE);<br />
}<br />
this function is not a constructor. It's just a member function. The initializer list (see the bold code) is only legal in constructors.
Change CProjectLDlg::CSkinDlg to CProjectLDlg::CProjectLDlg . That should do the trick.
Behind every greak black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Thanks for reply my question ^^
|
|
|
|
|
You're welcome
Behind every greak black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
hello..
I want to copy contents of one file to another.. the second file name will be specified by the user at run time.. how do i do it?
regards
pallavi
|
|
|
|
|
check this out here^
<bold>- Nilesh
<italics>
"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
Look up the following api in MSDN:
BOOL CopyFile(
LPCTSTR lpExistingFileName,
LPCTSTR lpNewFileName,
BOOL bFailIfExists
);
Behind every greak black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
is [CopyFile] help
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
You were late 5 minutes!
Behind every greak black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Hello Bob..
Did you post your article which was supposed to be on heap manager..
regards
pallavi
|
|
|
|
|
mpallavi wrote:
Did you post your article which was supposed to be on heap manager..
I am Also Waiting for SAME, BOB Respond
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Hello,
It's not the easiest thing to write. Besides that, I have little time on my hands, which I have to spend wisely. I'm not going to flunk some classes in school because I want to write that component... I'll try my best to finish it soon, but I canno't promise an exact date any time soon...
Behind every greak black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Bob Stanneveld wrote:
It's not the easiest thing to write.
I know, thats why i am waiting for it.
Bob Stanneveld wrote:
I'll try my best to finish it soon
Best of luck for that
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
ThatsAlok wrote:
Best of luck for that
Thanks
Behind every greak black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Not yet, I'm almost finished with the design. I'll post the article on the design after it is final (after some coding and no more major changes should be made).
Behind every greak black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|