|
Hi All
i am creating a report which data take time 1-5mins. So i want to display a Please wait message.Please help me
|
|
|
|
|
You may perform the processing in a worker thread while displaying the wait message in the main (GUI ) one, see [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
COleBusyDialog[^]
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
Why don't you just let the user do his thing when the report is being prepared, instead of showing a 'plz wait' message? Just use a worker thread to prepare the report.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Thanks for reply
I am useing worker threda for prepare report.But When report is going to prepare that time i want to show Please wait message after that i show report dialog.
|
|
|
|
|
Why would you want the user to wait if the GUI is not blocked?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
I have a dialog which consists of 2 list control items set in report view.
I wish to color a row in one of the list control.
How can i do it?
I can do it, if the app is Single Doc with base class CListView, by using OnCustomDraw.
But how can i implement OnCustomDraw in one of the List Control from dialog?
*12Code
|
|
|
|
|
Here is an example with dialog, see the CUSTLIST.ZIP sample:[^].
Nuri
|
|
|
|
|
Thanks Nuri, This is what i've been looking for.
*12Code
|
|
|
|
|
See here[^].
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Derive a class from the list control (CListCtrl) and implement the custom draw functionality in that. Then, in the dialog class, use your class derived from the list control instead of CListCtrl when declaring the list control variables. The way MFC works, your derived class should sub-class the list controls and you should get your row colouring functionality.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
|
i need to detect when i press the Return or The arrow down button how can id o that and in which file ?
in a SDI Application. Thanks .
|
|
|
|
|
susanne1 wrote: The arrow down butto
Add a handler for WM_LBUTTONDOWN using the class wizard in your view class.
Handle WM_KEYDOWN event and check if nChar==VK_DOWN & nChar==VK_RETURN (For enter key)
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
modified on Wednesday, May 20, 2009 8:12 AM
|
|
|
|
|
I gues she was talking about the arrow down key, and not button...
|
|
|
|
|
HALLO and thanks for the answer, i have the followinbg code in the view.cpp file:
BEGIN_MESSAGE_MAP(CTest_View, CEditView)
ON_WM_LBUTTONDOWN(OnCursorLine) // this should get if the user pressed the return or the up or down arrows
END_MESSAGE_MAP()
// where should i handle WM_KEYDOWN event?
CTest_View::OnCursorLine()
{
if(nChar==VK_DOWN & nChar==VK_RETURN)// how can i get the value of nChar?
}
When i start ma SDI application and press the Return or arrow up/down the Debuger does not go to the OnCursorLine ().
What should i do?
|
|
|
|
|
Hi,
From u r words it is not clear what u want to do? and from which control u want to get the notification, ie CListCtrl, CButton
And the Handler code must be in the source file of class derived from CFormView/CDialog.
thanks
Jose Jo.
Jose Jo Martin
http://www.simpletools.co.in
|
|
|
|
|
Hello,
I need to write an parallel algoritm in C/C++ under linux using gcc, to calculate an linear sistem using Gauss-Seidel algorithm.
Can anyone help me? Or give me a point to start?
Thanks a lot!
|
|
|
|
|
See Gauss-Seidel[^]. I bet you haven't searched though.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
I searched but I didn't found what I needed. Indeed, your code helped me, but my problem is to find an algorithm that will work on two cores. I will try to modify your code.Thanks
|
|
|
|
|
Hello!
It's not my code; I just looked up Google.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
What about Googling for (6th item looks promising...) [^]?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
How to video Capture Application using C++
|
|
|
|
|
See here[^]. I don't think it was too difficult to find this
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|