Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: l46kok

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    456

    Intricate Treevie Design

    I am trying to design an IDE-like (Non-Editable) program with a richtextbox control. Basically, I need the treeview which is positioned to the left side of the RTB to expand/collapse a certain...
  2. Replies
    0
    Views
    255

    XAML A requirement?

    When my instructor taught the course of .NET 4.0 with C#, we quickly went over the usage of XAML over a day and even then, he never stressed the importance of it. In a real world, how often is XAML...
  3. Replies
    3
    Views
    504

    Icon class giving error

    In my code, I'm trying to set an icon to a variable

    Icon test = new Icon("systray.ico");

    But this throws an exception and causes my program to crash if not handled (There should be no need to...
  4. Re: Create button in Dialog Based Application Help

    I believe you are referring to the ID of the button.

    In the resource compiler, right click on the button, click properties, and on the property window, there should be an entry for the ID of the...
  5. Replies
    4
    Views
    3,875

    Re: MFC Picture Control W/ Bitmap Mayhem.

    Strange.. It didn't work either in Frame type or Bitmap type. Here's what I have for the Picture Control Class



    // PictureCtrl.cpp : implementation file
    //

    #include "stdafx.h"
    #include...
  6. Replies
    4
    Views
    3,875

    Re: MFC Picture Control W/ Bitmap Mayhem.

    Ok, so if I understood you correctly, you want me to generate a class for the picture control, map it with OnPaint function and draw the rectangles there?
  7. Replies
    4
    Views
    3,875

    MFC Picture Control W/ Bitmap Mayhem.

    Ok.. My problem is kind of screwed up, I'm not even sure if there is a solution available for this. If there isn't, I'd like to know any alternative way of doing this.

    I placed a Picture Control...
  8. Replies
    3
    Views
    645

    Re: MFC DoModal for Loading Pictures

    This worked excellently. Thanks.
  9. Replies
    3
    Views
    645

    MFC DoModal for Loading Pictures

    I'm wondering if there is a way to use DoModal boxes for the Jpeg files I'm trying to load onto the Picture Control I have in my application. For instance, CFileDialog has DoModal option for you, so...
  10. Replies
    1
    Views
    708

    CListCtrl InsertItem Error

    I have a structure of the following


    typedef struct
    {
    CString m_csKeyPressed;
    CString m_csCircleColor;
    CString m_csMouseX;
    CString m_csMouseY;
    }CircleParameters;
  11. Replies
    10
    Views
    1,314

    Re: MFC, ListCtrl selection question

    Oh man, I didn't think that would solve the problem, I'll try this and see what happens. Thanks a lot!

    [Edit]

    I found a solution for my prior problem


    DWORD l_mPosition = ::GetMessagePos();...
  12. Replies
    10
    Views
    1,314

    Re: MFC, ListCtrl selection question

    Since DDX_Control accepts CWnd& type for the third variable,

    DDX_Control(pDX, IDC_LIST_TASK, (CWnd&)pListCtrl);

    Does this make sense? I think something's off.

    IDC_LIST_TASK is my ID for the...
  13. Replies
    10
    Views
    1,314

    Re: MFC, ListCtrl selection question

    No, I didn't use Add Member variable. That menu item was disabled in the resource compiler, when I right clicked, so I went ahead and defined all the control variable in the header file and in the...
  14. Replies
    10
    Views
    1,314

    Re: MFC, ListCtrl selection question

    I tried doing that, but the code crashes, if I don't call GetDlgItem, each time in a different function. I think the object is somehow changed during runtime.

    I'm using ListCtrl object, not...
  15. Replies
    10
    Views
    1,314

    Re: MFC, ListCtrl selection question

    Does not work. here's the code I have :



    void CMainDialog::OnUpdateListCtrl(NMHDR * pNotifyStruct, LRESULT * result )
    {
    NMLISTVIEW* pNMListView = (NM_LISTVIEW*) pNotifyStruct;
    ...
  16. Replies
    10
    Views
    1,314

    MFC, ListCtrl selection question

    Project_Main_Code.cpp



    #include "Project_Main_Header.h"
    #include "resource.h"

    CMyApp myApp;

    BOOL CMyApp::InitInstance()
  17. Replies
    5
    Views
    1,025

    Re: MFC Dialog as Mainwnd, Setting DWStyle

    Thanks. That cleared up my question once and for all!

    One last question I want to ask -

    How do you handle the messages for any selections made in the List Control in report view? Would it be...
  18. Replies
    5
    Views
    1,025

    Re: MFC Dialog as Mainwnd, Setting DWStyle

    One without the exit button (X mark) on the top-right corner of my dialog box.

    [Edit]

    And as you mentioned, that was the easiest method to go by, thanks ^^

    While I'm here, I want to ask...
  19. Replies
    5
    Views
    1,025

    MFC Dialog as Mainwnd, Setting DWStyle

    My question is ultra simple -

    When I have a dialog box as the main window, how do I specify the DWSTYLE of the window it shows?

    Project_Main_Header.h



    #include <afxwin.h>
    #include...
  20. Replies
    2
    Views
    634

    MFC ListCtrl Declaration, Help!

    Ok, this is probably something simple, but I cannot get it to work.


    project_main_header.h


    #include <afxwin.h>
    #ifndef _DIALOGASMAINWINDOW_H_
    #define _DIALOGASMAINWINDOW_H_
  21. Replies
    6
    Views
    706

    Re: Operator Overload problem. Please help

    Oh it worked for me too. Just forgot to put const on my return function. Thanks
  22. Replies
    6
    Views
    706

    Re: Operator Overload problem. Please help

    Thanks for the reply.

    I've tried adding your code, but I still get an error stating

    Printer::getPrintTime' : cannot convert 'this' pointer from 'const Printer' to 'Printer &'

    What should I...
  23. Replies
    6
    Views
    706

    Operator Overload problem. Please help

    I have the code as following
    #define PRINT_PER_MINUTE 10;

    class Printer
    {
    private:
    int pages;
    public:
    Printer(int _pages)
    {
Results 1 to 23 of 23


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center