Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

CTabCtrl

Empfohlene Antworten

Veröffentlicht

Hallo,

ich versuche grade eine Registerkarte in meinem Dialog erstellen ;)

So mache ich es :

Also ich habe mehre Dialoge erstellt die von Cdialog abgeleitet sind also

public Cdialog

dann in dem Hauptdialog variable von CTabCtrl deklariert, dann in OnInitDialog()

// TabCtrls initialisieren

TC_ITEM tabCtrlItem;

tabCtrlItem.mask = TCIF_TEXT;

tabCtrlItem.pszText = "TEXT";

m_tab.InsertItem(PSC_TAB1, &tabCtrlItem);

tabCtrlItem.pszText = " TEXT 1";

m_tab.InsertItem(PSC_TAB2, &tabCtrlItem);

tabCtrlItem.pszText = " TEXT 2";

m_tab.InsertItem(PSC_TAB3,&tabCtrlItem);

tabCtrlItem.pszText = " TEXT 3";

m_tab.InsertItem(PSC_TAB4,&tabCtrlItem);

// Tab1

m_pDatenTabDlg[PSC_TAB1] = new Ctab1();

m_pDatenTabDlg[PSC_TAB1]->Create(IDD_TAB1,&m_tab );

[\code]

dann

[code]

void xxxDlg::OnSelchangetab(NMHDR* pNMHDR, LRESULT* pResult)

{

for (int i = 0; i <= PSC_MAX_DATATABS; i++)

{

m_pDatenTabDlg[i]->ShowWindow(SW_HIDE);

m_pDatenTabDlg[i]->UpdateWindow();

}

m_pDatenTabDlg[m_tab.GetCurSel()]->ShowWindow(SW_SHOW);

*pResult = 0;

}

[\code]

Habe aber folgenden Problem: die Tabs bzw. Dialoge werden angezeigt leider nicht auf der richtige Position ;(

Wie bringe ich da wo ich will ?!?!!?

  • Autor

Was aber noch sehr komisch ist, dass bei


m_pDatenTabDlg[PSC_TAB1] = new CTab1();

m_pDatenTabDlg[PSC_TAB1]->Create(IDD_TAB1,&m_tab );

Kriege ich den Hauptdialog angezeigt und bei anderen wie

m_pDatenTabDlg[PSC_TAB2] = new CTab2();

m_pDatenTabDlg[PSC_TAB2]->Create(IDD_TAB2,&m_tab );

den richtigen Dialog ?!!?

HILFE

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.