|
Ahhhmmm, so it is an extra module. I was looking for it in the VStudio 6 package ehehehe, thanks
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
Hello,
How do we know if we press enter key in CEdit? is there a message? like onclick,onenterkey or something,
i searched alot about it, but i didnt find exactly what i should to do
thanks.
|
|
|
|
|
overide the pretranslate message and check the message.
BOOL MyDlg::PreTranslateMessage(MSG* pMsg) <br />
{<br />
if( pMsg->hwnd == m_edit.m_hWnd && pMsg->message == WM_KEYDOWN && pMsg->wParam == VK_RETURN )<br />
{<br />
}<br />
return CDialog::PreTranslateMessage(pMsg);<br />
}
Where m_edit is the control variable of edit control.
|
|
|
|
|
thanks a lot it also useful for me.
|
|
|
|
|
hey..
i am using C++ (wxWindows for GUI)--I have an image file in RAW format ...i have read the file into a 2-D array, how that data is to be used display the image on a control?
thanks
|
|
|
|
|
Dear Colleagues ,
Is there any idea to create a small white hint box to alert the user that he enterd a wrong entry .
Best regards,
|
|
|
|
|
What about using a tooltip?
- NS -
|
|
|
|
|
Do you want allow to user that has a select or you want only to show an alert?
|
|
|
|
|
|
Jarrah_12 wrote: only an alert . thanx
look at CToolTip class, as pointed out by NS!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Yeah I agree Tooltip is good selection.
|
|
|
|
|
, Guys thank you very much for your help and fast respond .
|
|
|
|
|
I glad your problem solved.;)
|
|
|
|
|
Hamid. wrote: I glad your problem solved.
me too!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi All,
In a Multithreaded App, is it possible to create a rabbit from a thread? A rabbit means the worker thread would jump back into the main thread and exit (abandoning it's own ThreadProc exit).
Jeff
|
|
|
|
|
In a multithreaded Windows application?
I've personally never heard of that, but it doesn't sound
possible with Windows threads. There's no way to jump to
another thread.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Jeffrey Walton wrote: A rabbit means the worker thread would jump back into the main thread and exit
Is the goal to force the creation of a rabbit? or is the goal some functionality that the rabbit provides? if the latter, have you considered a method that achieves the same results?
_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)
|
|
|
|
|
Hi El Corazon,
El Corazon wrote: Is the goal to force the creation of a rabbit?
This part is easy - CreateThread() does the trick. It's the non-standard behavior
El Corazon wrote: or is the goal some functionality that the rabbit provides
It is an academic exercise to see what I can accomplish within the restraints of the compiler.
Jeff
|
|
|
|
|
I'm working in VC++6. How can i do to set the cursor in a row position of CLisCtrl? That way, if the user press down or up arroy the movement starts from the designated position. I can use the CListCtrl.EnsureVisible( iPos, TRUE) to ensure visibility but the movement starts from the begin.
Thanks a lot.
|
|
|
|
|
Try using list.SetItemState(iPos,LVIS_FOCUSED,LVIS_FOCUSED) .
See CListCtrl::SetItemState[^] for more information.
Software Zen: delete this;
|
|
|
|
|
|
You're welcome. I've used the list control a fair amount, and I know some of the things that ought to be easy can be difficult to find in the MS documentation.
Software Zen: delete this;
|
|
|
|
|
Gary Wheeler wrote: easy can be difficult to find in the MS documentation.
Humm, sometimes!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
I agree too. Examples in MS documents are so poor.
m_mylistctrl.SetItemState(iItem, LVIS_SELECTED, LVIS_SELECTED);
BOOL SetItemState(
int nItem,
UINT nState,
UINT nMask
);
But I still don't know what do these two LVIS_SELECTED mean. Should they always be the same? Anybody can tell me?
|
|
|
|
|
This approach lets you set some state bits and clear others in a single call. The nState argument contains the bits you want to set, while the nMask argument contains the bits you want to change. For example, if you call it like this:
m_mylistctrl.SetItemState(iItem,LVIS_FOCUSED,(LVIS_FOCUSED | LVIS_SELECTED)); this would set the LVIS_FOCUSED state and clear the LVIS_SELECTED state for the specified item.
Software Zen: delete this;
|
|
|
|