|
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_
|
|
|
|
|
|
where do i go to ask silicon labs questions?
|
|
|
|
|
|
find if they have a common forum where you can post your queries too...
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
Member 6038196 wrote: where do i go to ask silicon labs questions?
Uhm...Texas?
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]
|
|
|
|
|
Maybe here[^]. How on earth did you end up here for SiLabs question?
|
|
|
|
|
Hallo i have the following prob lem: i need to show a message in the statusbar when my application has nothing to do (IDLE):
i used the following code this is SDI_Appliction:
in the MainFrm.cpp
BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
ON_WM_ENTERIDLE() // Idle
END_MESSAGE_MAP()
bool CMainFrame::OnIdle(LONG lCount)
{
theApp.OnIdle(lCount);
if ((lCount) == 0)
{
// send a message to the statusbar
}
return TRUE;
}
my appliction uses by functions that are in Test_Doc.cpp
i do not know how to solve this problem: Please answer in details. Thanks
|
|
|
|