Panel użytkownika
Nazwa użytkownika:
Hasło:
Nie masz jeszcze konta?

mfcpropertygridctr i tabelka

Ostatnio zmodyfikowano 2016-03-03 11:42
Autor Wiadomość
NiceFox
Temat założony przez niniejszego użytkownika
mfcpropertygridctr i tabelka
» 2016-03-03 09:36:51
Czy można przy pomocy mfcpropertygridctr utworzyć tabelkę 5 kolumnową?

C/C++
CRect Rect;
CMFCPropertyGridCtrl m_wndPropList;
// The this pointer points to a CPage5 class which extends the CMFCPropertyPage class.
m_grid.GetClientRect( Rect );
m_grid.MapWindowPoints( this, & Rect );

m_wndPropList.Create( WS_CHILD | WS_BORDER | WS_VISIBLE | WS_TABSTOP, Rect, this, 1231 );
m_grid.EnableHeaderCtrl( TRUE, _T( "col1" ), _T( "col2" ) ); // niestety tylko 2 kolumny !!!
m_wndPropList.SetVSDotNetLook( TRUE );

P-145509
darko202
» 2016-03-03 11:42:31
nie używałem ale z dokumentacji wygląda, że tak :
https://support.smartbear.com​/viewarticle/68311/
klikam tam properties
i jest
wValue Gets or sets the value of an item.

opis : The wValue property lets you obtain or set the value of the grid item

jest też tam Example

TestComplete includes a sample that demonstrates how to work with MFC PropertyGrid controls:

<TestComplete Samples>\Desktop\Working With Grids\Microsoft MFCPropertyGridCtrl


P-145513
« 1 »
  Strona 1 z 1