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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
M

mikert_2008

@mikert_2008
About
Posts
24
Topics
12
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • OnInitDialog() not getting called?
    M mikert_2008

    Hi, I have an Dialog based application. In which I created the Dialog and derived the class for that Dialog box. I write OnInitDialog() function inside derived class but it's not getting called when I call DoModal For that dialog. I am calling DoModal from the Main dialog class which gets created when project creted. Systax for calling is below: void CtestDialog2Dlg::OnBnClickedButton1() { CDialog testDlg(IDD_TEST_DIALOG10); testDlg.DoModal();// Should call OnInitDialog()??? } What I might be missing?? Mike

    C / C++ / MFC question

  • How to change the Title(Caption) of Modal Dialog Box?
    M mikert_2008

    CDialog dlgAbout(IDD_ABOUTBOX); dlgAbout.DoModal();

    C / C++ / MFC tutorial question learning

  • How to change the Title(Caption) of Modal Dialog Box?
    M mikert_2008

    Hi, It's for creating Modal dialog box indirectly. But I already have the dialog box. Thanks:- Mike

    C / C++ / MFC tutorial question learning

  • How to change the Title(Caption) of Modal Dialog Box?
    M mikert_2008

    Hi, I am aware of the InItDialog functionality. But I am not having Dialog derived for it. I am trying to avoid the creation of seperate class for this purpose. Is it possible to change the dialog header without using InItDialog?? Thanks:- Mike

    C / C++ / MFC tutorial question learning

  • How to change the Title(Caption) of Modal Dialog Box?
    M mikert_2008

    Hi, As I mentioned I am not having any Dialog class where I can use the OnInitDialog() function. I want to do it without using it. What I am trying for is the without using separate dialog class for it. Thanks Mike

    C / C++ / MFC tutorial question learning

  • How to change the Title(Caption) of Modal Dialog Box?
    M mikert_2008

    Hi, I have the dialog box. Which I am using as Modal dialog box with DoModal functionality. I need to change the Title(Caption) of dialog box before calling the domodal(). Since I am deciding the title of dialog box at run time I can't use the resource setting. One way I know to change the title of Modal Dialog Box is to use OnInitDialog() function of the class derived from the DialgBox and then call setwindowtext() function inside it. But I want to change the title/cation without using OnInitDialog as the project I am working doesn't have class derived from it. And doesn't look proper to genrate the class just for this purpose. Can anybody knows the other way of doing it?? Thanks in advance.. Mike.

    C / C++ / MFC tutorial question learning

  • How to stop the thread if it's running?
    M mikert_2008

    1. Run is simple displaying function. which has nothing to do with CWinThread::Run(). Now it looks like below... CWinThread * myWorkerThread; myWorkerThread = AfxBeginThread(run, this); myWorkerThread->m_bAutoDelete = TRUE; UINT run(LPVOID pParam) { .......... ............ // display the data } In ~Destructor() { DWORD result =WaitForSingleObject(myWorkerThread->m_hThread,0); if(result == WAIT_OBJECT_0) delete myWorkerThread; } 2. In WaitFor... I have given time 0 as I require only to check the status of the thread.

    C / C++ / MFC help tutorial question

  • How to stop the thread if it's running?
    M mikert_2008

    Thanks for the link given. So now I used it like following. CWinThread * myWorkerThread; myWorkerThread = AfxBeginThread(run, this); In ~Destructor() { DWORD result =WaitForSingleObject(myWorkerThread->m_hThread,0); if(result == WAIT_OBJECT_0) delete myWorkerThread; } Is this is the correct apporch to do this? Mike

    C / C++ / MFC help tutorial question

  • How to stop the thread if it's running?
    M mikert_2008

    Hi, I have created the thread using AfxBeginThread(); function. Now my problem is 1. How to check wheather Thread is running? 2. If it is running then stop/kill the thread. This I will put in the destructor of class (which starts the thread) to do error handling. How to do this? Mike

    C / C++ / MFC help tutorial question

  • How to get mouse event notification?
    M mikert_2008

    Hi, I have a dialog based application. I have added the tree control on it. The tree implementation is done in separate class. I am getting the mouse click event in the class where I implemented tree control. I want the mouse click event to pass to dialog class i.e ..dlg to do some other operation. How to do this? Thanks:- Mike

    C / C++ / MFC data-structures tutorial question

  • How to change the column order or position?
    M mikert_2008

    Hi, I have a header control(i.e CHeaderCtrl). In which I created 5 column. But my requirement is that only 1st column should not move(by dragdrop operation). How to make the perticular column non-movable? For this I am thinking of reordering the 1st column to orignal position i.e 1st. But how to change the column order programatically? Thanks:- Mike

    C / C++ / MFC tutorial question

  • How to change the index of Header Item?
    M mikert_2008

    Yes. I need to change the index of item. The new index will be postion of column after drag drop. Mike.

    C / C++ / MFC database tutorial question

  • How to change the index of Header Item?
    M mikert_2008

    NO. I have already added the HDS_DRAGDROP while creating the header control. What I need is to change the header Id which we specify while insertion. i.e m_header.InsertItem(columnId, &hditem);//columnId =1; Now How Can assign the some different hditem to columnId = 1; I try with SetItem() as in code but its not working...... Any suggestion. Mike

    C / C++ / MFC database tutorial question

  • How to change the index of Header Item?
    M mikert_2008

    Hi, I want to change the index of header Item on drag drop. If header item 0 drag drop to next header column(After HeaderCol 1) then change the index of Header item 0 to 1. & Header Item 1 index to 0. I am using GetItem() & SetItem() but that's not working. How to do this? Please make the correction in the code:- On DragDropFunc() { HDITEM pHeaderItemCurrent,pHeaderItemNew; TCHAR lpBuffer[256]; TCHAR lpBuffer1[256]; pHeaderItemCurrent.pszText = lpBuffer; pHeaderItemCurrent.cchTextMax = 256; pHeaderItemNew.pszText = lpBuffer1; pHeaderItemNew.cchTextMax = 256; m_HeaderCtrl.GetItem(0,&pHeaderItemCurrent); m_HeaderCtrl.GetItem(1,&pHeaderItemNew); m_HeaderCtrl.SetItem(0, &pHeaderItemNew); m_HeaderCtrl.SetItem(1, &pHeaderItemCurrent); } Thanks:- Mike

    C / C++ / MFC database tutorial question

  • How to add and retrive the LPARAM value from CTreeCtrl?
    M mikert_2008

    Hi, I am not sure about SetItemData() and GetItemData() will solve my purpose. I want to send some CString value with each leaf node. e.g If you insert node 'Employee1' in the tree I will add 'EmployeeId1' as a LPARAM. So that next time when i retrive the node data I need to get LPARAM(Id associated with leaf node) somehow. Please suggest how this can achive? Thanks:- Mike

    C / C++ / MFC question data-structures tutorial

  • How to add and retrive the LPARAM value from CTreeCtrl?
    M mikert_2008

    Hi, I am useing CTreeCtrl class to build tree. I want to add CString as a additional parameter(LPARAM) to leaf node. How can I add/retrive LPARAM? For Insertion I am Using:- tree.InsertItem("Employees", 0, 0, TVI_ROOT); And For retrival I Am using:- HTREEITEM hCurSel = tree.GetNextItem(TVI_ROOT, TVGN_CARET); Please suggest If I need to use different method for it or modify above method for add/Retrive LPARAM. Thanks:- Mike

    C / C++ / MFC question data-structures tutorial

  • How to use Tree Control Inside List View Control?
    M mikert_2008

    Hi, I want to use the Tree control inside the CList control. I found many artical on it when I search it. But I am not able to find simple approach to do this. Most of the artical have other things beside the tree control. And many of having ready .dll to be used in program. But none one explain how to do this. Can any one suggest me the simplest way to do this(web link/sample artical). The artical which only deal with inserting tree inside list control is welcome. Thanks:- Mike

    C / C++ / MFC data-structures tutorial question

  • How to Compare 2 CStringArray?
    M mikert_2008

    Hi , I want to compare 2 CStringArray... Please suggest best way to compare this arrays. Can it be easy to do using STL. I would like to have easiest way (using CStrinArray / STL )to do this.. Thanks:- Mike

    C / C++ / MFC c++ tutorial question

  • How to pass CMap as argument between the functions?
    M mikert_2008

    How can CMap Argument be pass to function of two different class? e.g class A { typedef CMap <..,..,..,..>cMyMapA; void func(cMyMapA cMapAgr); } class B { typedef CMap<..,..,..,..>cMyMapB; A objA; objA.func(cMyMapB cMyMapBArg) ????? } Thanks:- Rajiv

    C / C++ / MFC graphics help tutorial question

  • How to pass CMap as argument between the functions?
    M mikert_2008

    It's working. Thanks. Mike

    C / C++ / MFC graphics help tutorial 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