User Activity

  • Posted a comment on discussion Open Discussion on OWLNext: C++ Application Framework

    Hello everyone, I am currently working with TTreeViewCtrl and implementing the HitTest function. However, I have noticed a potential issue regarding how we pass the TTvHitTestInfo structure to SendMessage. Here are two different implementations: 1️⃣ Implementation A (Correct?) //OWLNext 6.44 inline HTREEITEM TTreeViewCtrl::HitTest(TTvHitTestInfo* info) { return reinterpret_cast<HTREEITEM>(SendMessage(TVM_HITTEST, 0, TParam2(info))); } 2️⃣ Implementation B (Incorrect?) //OWLNext 7.16 inline HTREEITEM...

  • Posted a comment on discussion Open Discussion on OWLNext: C++ Application Framework

    In OWLNext 6.44 it was: //listviewctrl.h bool TListViewCtrl::SetItemState(int index, uint state, uint mask) //listviewctrl.cpp bool TListViewCtrl::SetItemState(int index, uint state, uint mask) { LVITEM item; item.state = state; item.stateMask = mask; return ToBool(SendMessage(LVM_SETITEMSTATE, index, TParam2(&item))); } In OWLNext 7 it is: //listviewctrl.h auto TListViewCtrl::SetItemState(int index, TLvItem::TListState state, uint mask) -> bool //listviewctrl.cpp auto TListViewCtrl::SetItemState(int...

  • Modified a comment on discussion Open Discussion on OWLNext: C++ Application Framework

    Hii @Vidar Hasfjord , While Investigation i found that in TLvItem class in listviewctrl.h file the TMaskFlag value is changed . (Refer below code) This is the reason my TLvItem is not inserted Properly in InsertItem(); in OWLNext 7: class _OWLCLASS TLvItem : public LVITEM { public: enum TMaskFlag { lvifAll = 0xFFFFFFFF }; in OWLNext 6: #if !defined(LVCF_ALL) # define LVCF_ALL (LVCF_FMT|LVCF_SUBITEM|LVCF_TEXT|LVCF_WIDTH) #endif #if !defined(LVIF_ALL) # define LVIF_ALL (LVIF_TEXT|LVIF_IMAGE|LVIF_PARAM|LVIF_STATE)...

  • Posted a comment on discussion Open Discussion on OWLNext: C++ Application Framework

    Hii @Vidar Hasfjord , While Investigation i found that in TLvItem class in listviewctrl.h file the TMaskFlag value is changed . (Refer below code) This is the reason my TLvItem is not inserted Properly in OWLNext 7: class _OWLCLASS TLvItem : public LVITEM { public: enum TMaskFlag { lvifAll = 0xFFFFFFFF }; in OWLNext 6: #if !defined(LVCF_ALL) # define LVCF_ALL (LVCF_FMT|LVCF_SUBITEM|LVCF_TEXT|LVCF_WIDTH) #endif #if !defined(LVIF_ALL) # define LVIF_ALL (LVIF_TEXT|LVIF_IMAGE|LVIF_PARAM|LVIF_STATE) #endif...

  • Modified a comment on discussion Open Discussion on OWLNext: C++ Application Framework

    Hii , while upgrading my project from owlnext 6.44 to owlnext 7.0.13 . In this sample code when i try to insert TLVItem in InsertItem function. it is not inserting the item properly . dont know why ! for (int rowIndex = 0; rowIndex < numberOfRows; rowIndex++) { TLvItem item; item.state = 0; item.SetIndex(rowIndex); std::string cellText = "Row " + std::to_string(rowIndex + 1) + " - Col 1"; item.SetText(cellText); //item.SetImageIndex((rowIndex % 2) > 0 ? 0 : 1); _pMyListView->InsertItem(item); _pMyListView->SetItemState(rowIndex,...

  • Posted a comment on discussion Open Discussion on OWLNext: C++ Application Framework

    Hii , In this sample code when i try to insert TLVItem in InsertItem function. it is not inserting the item properly . dont know why ! for (int rowIndex = 0; rowIndex < numberOfRows; rowIndex++) { TLvItem item; item.state = 0; item.SetIndex(rowIndex); std::string cellText = "Row " + std::to_string(rowIndex + 1) + " - Col 1"; item.SetText(cellText); //item.SetImageIndex((rowIndex % 2) > 0 ? 0 : 1); _pMyListView->InsertItem(item); _pMyListView->SetItemState(rowIndex, static_cast<TLvItem::TListState>(INDEXTOSTATEIMAGEMASK((rowIndex...

  • Posted a comment on discussion Open Discussion on OWLNext: C++ Application Framework

    Hii , why i am getting this error ? (upgrading owlnext 6.44 to owlnext 7.0.13 version) window.cpp(2433) : Warning: [OwlWin:0] TWindow::Create failed: (class owl::TTooltip,00000000,'',id=0) Exception thrown at 0x77189E64 in Demoapp.exe: Microsoft C++ exception: owl::TXWindow at memory location 0x00E97EA8. dialog.cpp(463) : Trace: [OwlWin:0] TDialog::StdDlgProc: Suspending unhandled exception for message: 48 applicat.cpp(1017) : Trace: [OwlApp:0] TApplication::SuspendThrow: Suspending exception and...

  • Posted a comment on discussion Open Discussion on OWLNext: C++ Application Framework

    Hello Everyone, While upgrading my project from OWLNext 6.44 to OWLNext 7 . Getting this error "TRegKey::TRegKey: Init failed " . // this is my customized class class BASEUTIL_API TPhRegKey : public TRegKey { public: TPhRegKey::TPhRegKey(THandle baseKey, const char far* keyName, REGSAM samDesired, TCreateOK createOK) : TRegKey(baseKey, keyName, samDesired, createOK) { } when i can see in newer owlnext version , in TRegKey class constructor throwing error when the key or value is not found in registry...

View All

Personal Data

Username:
juniordev
Joined:
2024-10-28 11:42:16.087000

Projects

  • No projects to display.

Personal Tools

MongoDB Logo MongoDB