|
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;
|
|
|
|
|
Not agree...
I have many times found no usefull help in MSDN. It depends on what you look for. Some times the explanations are too poor and the examples vanal.
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
|
|
|
|
|
I didn't say MSDN was perfect. I just said that it was often more difficult to find things in it than it should be. The MSDN Library has been reorganized several times, often without any improvement in content.
Software Zen: delete this;
|
|
|
|
|
Sorry, then I missunderstood you.
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
|
|
|
|
|
Hi,
I am having this image viewing program where I have a dialog that gets created (using DoModal) for adjusting brightness/contrast with initial values set by main frame. I would like to know how I can update the image thats being displayed on main frame whenever I change the values in the pop up dialog.
thanks in advance,
-PNT
PKNT
|
|
|
|
|
one way is to use SendMessage to send the updated values
|
|
|
|