thanks...
NoName II
Posts
-
Why I can't beging thread from myclass constructor? -
Why I can't beging thread from myclass constructor?CMyClass::CMyClass() { m_thread=(HANDLE)_beginthreadex(0,0,&MyClass::MyFunct,0,0,0);//error C2664: '_beginthreadex' : cannot convert parameter 3 from 'unsigned int (__stdcall CMyClass::* )(void *)' to 'unsigned int (__stdcall *)(void *)' } CMyClass::~CMyClass(void) { CloseHandle(m_thread); } unsigned __stdcall CMyClass::MyFunct(void* param) { return 0; }
-
Can JavaScript Email a Form?and if can... how to do it?
-
modeless dialog errortryin to create modeless dialog... m_dlg->Create(CMyDlg::IDD, &m_tabctrl/*CTabCtrl*/);// ASSERT(pWnd->m_hWnd == NULL); // debug error constructor: CMyDlg::CMyDlg(CWnd* pParent /*=NULL*/) //: CDialog(CMyDlg::IDD, pParent) { this->Create(CMyDlg::IDD, pParent); this->ShowWindow(SW_NORMAL); }
-
CListCtrl: subitem edit problemwrote smth like this..... void CGraphDataEdtDlg::OnBeginlabeledit(NMHDR *pNMHDR, LRESULT *pResult) { NMLVDISPINFO *pDispInfo = reinterpret_cast(pNMHDR); if (m_subitem) { CEdit *edit=m_list.GetEditControl(); if (edit!=NULL) { CRect rtSubItem; m_list.GetSubItemRect(m_item,m_subitem,LVIR_BOUNDS ,rtSubItem); edit->MoveWindow(rtSubItem); CString str; str.Format(_T("left top(%d,%d)\nright bot(%d,%d)"),rtSubItem.left,rtSubItem.top,rtSubItem.right,rtSubItem.bottom); AfxMessageBox(str); edit->SetWindowText(m_list.GetItemText(m_item,m_subitem)); } } *pResult = 0; } call this function with m_list.EditLabel(item); as result my editcontroler always covers 0-subitem of item-raw....
-
CListCtrl: subitem edit problemI mean else... i'd like to edit subitem text in controler
-
CListCtrl: subitem edit problemI have CListCtrl(REPORT) which uses the LVS_EDITLABELS style. Have can I edit subitem of the list?
-
CPropertySheet:How can I hide standart buttons or change button text?how can I get access to te buttons?
-
CPropertySheet:How can I hide standart buttons or change button text?I have CpopertySheet..WizardMode and i'd like to hide back-button for one CPropertyPage of my sheet...and rename it for another how can I do it?
-
DrawString(GDI+) & CStringCan't draw CString string with DrawString(GDI+) CString str=_T("test string"); FontFamily fontFamily(L"Times New Roman"); Font font(&fontFamily, 24, FontStyleRegular, UnitPixel); PointF pointF(30.0f, 10.0f); SolidBrush solidBrush(Color(255, 0, 0, 255)); graphics.DrawString(str.GetBuffer(), -1, &font, pointF, &solidBrush);
-
can't use CPropertySheet constructor???CPropertySheet properties(_T("вфыавав"), this, 0);//error C2664: 'CPropertySheet::CPropertySheet(UINT,CWnd *,UINT)' : cannot convert parameter 1 from 'const wchar_t [13]' to 'UINT' ??? but CPropertySheet have constructor with LPCTSTR as the 1st parameter explicit CPropertySheet( LPCTSTR pszCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0 );
-
Yow can I serialize Color object (GDI+)Could you post article here...or emai...
-
Yow can I serialize Color object (GDI+)I can't.... mybe the priblem is couse use Opera?
-
Yow can I serialize Color object (GDI+)can't brouse the page...are u sure about the link?
-
Yow can I serialize Color object (GDI+)the subj.
-
strange error GDI+the problem was solved. reason was that MFC DEBUG_NEW Does Not Work with GDI+
-
strange error GDI+trying to create Bitmap object Bitmap *backBitmap; backBitmap=new Bitmap(GetSystemMetrics(SM_CXSCREEN),GetSystemMetrics(SM_CYSCREEN));//error C2660: 'Gdiplus::GdiplusBase::operator new' : function does not take 3 arguments
-
How to add Image(GDI+) object to CImageListneed to add some images thumbnail to CImageList
-
How to create CTabCtrl with dialog as layingdid as u say.... CMyDialog *MyDialog;//in MainDlg header file MyDialog = new CMyDialog; //in mainDlg constructor CMainDlg::OnInitDialog{ TC_ITEM TabItem; TabItem.mask = TCIF_TEXT; TabItem.pszText = _T("111111"); m_tabctrl.InsertItem( 0, &TabItem ); TabItem.mask = TCIF_PARAM; TabItem.lParam = (LPARAM)MyDialog; m_tabctrl.SetItem(0, &TabItem); VERIFY(MyDialog->Create(CMyDialog::IDD, &m_tabctrl)); MyDialog->ShowWindow(SW_SHOW); } CMyDialog constructor CMyDialog::CMyDialog(CWnd* pParent /*=NULL*/) : CDialog(CMyDialog::IDD, pParent) { /*this->Create(CThumbViewDlg::IDD, pParent); this->ShowWindow(SW_NORMAL);*/ } error in HWND CDataExchange::PrepareCtrl if (pSite == NULL) { TRACE(traceAppMsg, 0, "Error: no data exchange control with ID 0x%04X.\n", nIDC); ASSERT(FALSE); AfxThrowNotSupportedException();//<-------------------------------------| }
-
How to create CTabCtrl with dialog as layingwrote smth like this... variables: CTabCtrl m_tabctrl; CDlg1* dlg1; CDlg2*dlg2 MyDialog constructors ... : CDlg1::CDlg1(CWnd* pParent /*=NULL*/) //: CDialog(CDlg1::IDD, pParent) { this->Create(CDlg1::IDD, pParent); this->ShowWindow(SW_NORMAL); } BOOL CMainDlg::OnInitDialog() { CDialog::OnInitDialog(); m_tabctrl.InsertItem(0,_T("1111")); m_tabctrl.InsertItem(1,_T("2222")); dlg1=new CDlg1(GetDlgItem(IDC_TAB1)); dlg1->ShowWindow(SW_SHOW);// error IsWindow=false }