Hope, you did not misnderstand. This was no programming-question, as I have a solution to the probelm. But it's been a long way and I asked for others who will have this problem too. Anyway, it's not my problem anymore:rolleyes:
ensger
Posts
-
[Message Deleted] -
[Message Deleted]It's not the first time for me:-> But it's not been so crazy like my last fault, I think:rolleyes: (Messege is not deeleted yet :-D)
-
[Message Deleted]Oh, we missunderstood, now, as this problem is solved, I am happy with this grid and I use it of course!!!
-
[Message Deleted]However you say to it - I want to be able to sctoll within the view with the keyboard. And that at first creation, when I change the window, when I made something like 'AfxMessage', after contextmenue and so on. This all is not possible with the example-code of Chris. But it would help beginners like me so much!!!! This was my suggestion to him - of course, I can do now and I could say, that's enough. But I think, this is a real problem for beginners:rose: Hope, I didn't affront anyone with my message (I see the 1.0-voting:-D)
-
[Message Deleted]:laugh::laugh: m_pGridCtrl->SetFocus() was one of my first attempts - but it didn't work.I needed the help of Jon A. Jonson with something like
void CMyView::OnSetFocus(CWnd* pOldWnd) { CView::OnSetFocus(pOldWnd); if (m_pGridCtrl && IsWindow(m_pGridCtrl->m_hWnd)) { m_pGridCtrl->SetFocus(); int x = m_pGridCtrl->GetFixedColumnCount(); int y = m_pGridCtrl->GetFixedRowCount(); m_pGridCtrl->SetFocusCell (y,x); m_pGridCtrl->EnsureVisible(y,x); } }
And that's difficult for me:confused: -
[Message Deleted]to dump sthg - sorry, I don't understand:rolleyes: Get no sinful translation:~
-
[Message Deleted]Set focus in this case is dificult for me, as i'm not a programmer but a commercial who's anly programming a few hours a week. And I hope it's obvious that I am thankful for Chris work and this message was only a question because I know, that others have the same problem. Hope, I didn't realy disturb anybody with this, Gerhard
-
[Message Deleted][Message Deleted]
-
Scroll-problem with grid of Chris MaunderTried pGridCtrl->SetFocus() but it doesn't work. (compilition ok, but no difference) Trid viewwindow->SetFocus() it didn't work. (compilition-error) Many thank's for suggestions, Gerard
-
Scroll-problem with grid of Chris MaunderI hope you didn't hear 'Dead or alive' at the same moment;P I never heard his name, I only read the name here and it always makes me sure to have something with great quality;) But my problem with scrolling is still my problem:(( Hope, I can solve it;) Or you:rolleyes:
-
Scroll-problem with grid of Chris MaunderI tried m_pGridCtrl->SetFocusCell(2,4); for example, but it doesn't change the situation. It focuses this cell, but the keybord doesn't work anmore:sigh: (it works's, if I click in the grid with the maouse) Good idea, but unfortunatly:(( This problem is for me like 'Only a step for the programmer but a great step for all users' Do you know a way to simulate a mouse-click prgrammaticaly?? Even if this destroys the existng selections - I could live with this becouse of the increadable advantages of this grid!! Thank's, Gerard
-
Scroll-problem with grid of Chris MaunderHallo all, I supose that many of you will use the grid of Chris Maunder - it seems to be almost perfect. But I have one problem (more of course:-O, but one that is so serious that I have now to decide to use it or not). I'm using the grid in a view, and I always have to click in the grid first, before I con scroll with the keyboard. So I cannot work without mouse. After clicking, it's perfect. But I have an MDI-progam, and it's making me nervous to have to click into the grid every time after changing the window. Thought that I made something wrong but tried it even with the demo-program 'gridctrl_in_view' - the same probelm??? Any answer would be helpful and I would be happy if I could decide to use this grid, Gerard
-
stop scrolling of first column in CListView / CListCtrlHello, Does anyone know an easy way to stop the horizontal scrolling of the first (maybe the 2 first) columns in a CListView / CListCtrl. What I want is something that we can do in Excel with Window - Fix (hope, I translated correct). I have some text in the first 2 columns and many values in many other columns - and the text should always be visible. I tried the whole day to find an article, but I didn't succeed. So any help would be great. Thank's, Gerhard
-
Should we encourage this??How can it's rating be 0.48 if the rating starts with 1:^) (But of course it's 0.48 too high;))
-
Programmers of the pastjobless persons:sigh:
-
changing text of listCtrl-header - part twoI tried and it works. And the sense of this statement is even more obvious for me. So, many thanks
-
changing text of listCtrl-header - part twoBecause lvc.pszText = titel; results in an error-message like 'no operator defined, that accepts a right-sided operator of type 'class CString''. I didn't even know the existence of 'GetBuffer()' till last week - but it works ;)
-
changing text of listCtrl-header - part twoMany thanks, it work's. And thank's for the link. I'll have to read cause I didn't recognice till yet, that programs that work in debug-mode maybe will not work in release-mode.
-
changing text of listCtrl-header - part twoGot good help last week for changing text of listCtrl-header and I thougth, my problem is solved. I've the following code:
void koarkstewView::alterheadercontent() { LVCOLUMN lvc; CString titel; CListCtrl &listCtrl = GetListCtrl(); koarkstewDoc* pDoc = GetDocument(); karkst *karkstanz; karkstanz = pDoc->karkstanz; pDoc->SetTitle("KAR->KST"); int i = 3; if (karkstanz->wdfirst()) do { i++; titel = karkstanz->wdgetkarnr() + "\n"; titel = titel + gettitel(0, karkstanz->wdgetdatenart(), karkstanz->wdgetvon(), karkstanz->wdgetbis()); listCtrl.GetColumn(i, &lvc); lvc.pszText = titel.GetBuffer(0); titel.ReleaseBuffer(); listCtrl.SetColumn(i, &lvc); } while(karkstanz->wdnext()); }
Works fine - but only in debug-mode!! In release-mode, the text doesn't change:mad: But how to debug the code, if it work's in debug-mode:confused: Any proposals?? Thanks, Gerhard -
multiple c files in visual studio 6 projectWhy not only
#if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000
at the top of the .h-file? Seems to work fine.