Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
E

ensger

@ensger
About
Posts
180
Topics
28
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • [Message Deleted]
    E ensger

    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:

    The Lounge

  • [Message Deleted]
    E ensger

    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)

    The Lounge

  • [Message Deleted]
    E ensger

    Oh, we missunderstood, now, as this problem is solved, I am happy with this grid and I use it of course!!!

    The Lounge

  • [Message Deleted]
    E ensger

    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)

    The Lounge

  • [Message Deleted]
    E ensger

    :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:

    The Lounge

  • [Message Deleted]
    E ensger

    to dump sthg - sorry, I don't understand:rolleyes: Get no sinful translation:~

    The Lounge

  • [Message Deleted]
    E ensger

    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

    The Lounge

  • [Message Deleted]
    E ensger

    [Message Deleted]

    The Lounge

  • Scroll-problem with grid of Chris Maunder
    E ensger

    Tried 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

    C / C++ / MFC css help question learning

  • Scroll-problem with grid of Chris Maunder
    E ensger

    I 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:

    C / C++ / MFC css help question learning

  • Scroll-problem with grid of Chris Maunder
    E ensger

    I 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

    C / C++ / MFC css help question learning

  • Scroll-problem with grid of Chris Maunder
    E ensger

    Hallo 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

    C / C++ / MFC css help question learning

  • stop scrolling of first column in CListView / CListCtrl
    E ensger

    Hello, 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

    C / C++ / MFC help

  • Should we encourage this??
    E ensger

    How can it's rating be 0.48 if the rating starts with 1:^) (But of course it's 0.48 too high;))

    The Lounge com question

  • Programmers of the past
    E ensger

    jobless persons:sigh:

    The Lounge csharp php wpf com question

  • changing text of listCtrl-header - part two
    E ensger

    I tried and it works. And the sense of this statement is even more obvious for me. So, many thanks

    C / C++ / MFC help debugging tutorial question announcement

  • changing text of listCtrl-header - part two
    E ensger

    Because 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 ;)

    C / C++ / MFC help debugging tutorial question announcement

  • changing text of listCtrl-header - part two
    E ensger

    Many 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.

    C / C++ / MFC help debugging tutorial question announcement

  • changing text of listCtrl-header - part two
    E ensger

    Got 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

    C / C++ / MFC help debugging tutorial question announcement

  • multiple c files in visual studio 6 project
    E ensger

    Why not only #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 at the top of the .h-file? Seems to work fine.

    C / C++ / MFC csharp visual-studio question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups