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
S

sonu saini 76 gmail com

@sonu saini 76 gmail com
About
Posts
6
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Web page download without images
    S sonu saini 76 gmail com

    Open a particular Directory

    void CMultipleEOFDlg::OnBrowse()
    {
    CFileDialog dlg(TRUE);
    CString sPath = "c:\\program files\\my folder\\1.c";
    int nPos = sPath.Find("\\");
    nPos = sPath.Find("\\",nPos + 1);
    sPath = sPath.Left(nPos + 1);
    dlg.m_ofn.lpstrInitialDir=sPath;
    dlg.DoModal();
    }

    void CMultipleEOFDlg::OnBrowse()
    {
    // TODO: Add your control notification handler code here
    char strFilter[] = { "Text Files (*.txt)|*.bcr|All Files (*.*)|*.*||" };

    CFileDialog FileDlg(TRUE, "\*.txt", NULL, 0, strFilter);
    if( FileDlg.DoModal() == IDOK )
    {
    	m\_strFilePath = FileDlg.GetPathName();		
    }
    AfxMessageBox(m\_strFilePath);
    UpdateData(FALSE);
    

    }

    C / C++ / MFC

  • Getting child windows handle
    S sonu saini 76 gmail com

    Use this to set data into text box

    SendMessage(_Edithwnd, WM_SETTEXT, 0, (LPARAM)strCaption);

    C / C++ / MFC

  • Getting child windows handle
    S sonu saini 76 gmail com

    Try this

    CString Text;
    CWnd *pWnd = FindWindow(NULL, "Title");
    CWnd *pChildWnd = pWnd->GetWindow(GW_CHILD);
    while(pChildWnd)
    {
    UINT uiID = pChildWnd->GetDlgCtrlID();
    pChildWnd->GetDlgItemText(uiID, Text);// To get caption
    pChildWnd->SetDlgItemText(uiID, "Test"); //To set value into edit box

       pWnd->SendMessage(WM\_COMMAND, MAKEWPARAM(uiID, BN\_CLICKED), (LPARAM)pChildWnd->m\_hWnd);// To click on the control
       pChildWnd = pChildWnd->GetWindow(GW\_HWNDNEXT);
    }
    
    C / C++ / MFC

  • Web page download without images
    S sonu saini 76 gmail com

    Hi, I'm a newbie in VC++. I have to implement this into VC++, so please suggest.

    C / C++ / MFC

  • Web page download without images
    S sonu saini 76 gmail com

    Hi There, I need to download web pages from a website but don't want the images on that page. Please let me know how we can download only contents of web page without any image. Thanks!

    C / C++ / MFC

  • ??
    S sonu saini 76 gmail com

    // MyParDlg.cpp : implementation file
    //

    #include "stdafx.h"
    #include "MyPar.h"
    #include "MyParDlg.h"

    #ifdef _DEBUG
    #define new DEBUG_NEW
    #undef THIS_FILE
    static char THIS_FILE[] = __FILE__;
    #endif

    /////////////////////////////////////////////////////////////////////////////
    // CAboutDlg dialog used for App About

    class CAboutDlg : public CDialog
    {
    public:
    CAboutDlg();

    // Dialog Data
    //{{AFX_DATA(CAboutDlg)
    enum { IDD = IDD_ABOUTBOX };
    //}}AFX_DATA

    // ClassWizard generated virtual function overrides
    //{{AFX\_VIRTUAL(CAboutDlg)
    protected:
    virtual void DoDataExchange(CDataExchange\* pDX);    // DDX/DDV support
    //}}AFX\_VIRTUAL
    

    // Implementation
    protected:
    //{{AFX_MSG(CAboutDlg)
    //}}AFX_MSG
    DECLARE_MESSAGE_MAP()
    };

    CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
    {
    //{{AFX_DATA_INIT(CAboutDlg)
    //}}AFX_DATA_INIT
    }

    void CAboutDlg::DoDataExchange(CDataExchange* pDX)
    {
    CDialog::DoDataExchange(pDX);
    //{{AFX_DATA_MAP(CAboutDlg)
    //}}AFX_DATA_MAP
    }

    BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
    //{{AFX_MSG_MAP(CAboutDlg)
    // No message handlers
    //}}AFX_MSG_MAP
    END_MESSAGE_MAP()

    /////////////////////////////////////////////////////////////////////////////
    // CMyParDlg dialog

    CMyParDlg::CMyParDlg(CWnd* pParent /*=NULL*/)
    : CDialog(CMyParDlg::IDD, pParent)
    {
    //{{AFX_DATA_INIT(CMyParDlg)
    m_sCity = _T("");
    //}}AFX_DATA_INIT
    // Note that LoadIcon does not require a subsequent DestroyIcon in Win32
    m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
    }

    void CMyParDlg::DoDataExchange(CDataExchange* pDX)
    {
    CDialog::DoDataExchange(pDX);
    //{{AFX_DATA_MAP(CMyParDlg)
    DDX_Control(pDX, IDC_IMAGE, m_Image);
    DDX_Control(pDX, IDC_COMBO_CHECKOUT_MONTHYEAR, m_cbCheckoutMonthYear);
    DDX_Control(pDX, IDC_COMBO_GUEST_ROOMS, m_cbGuestRooms);
    DDX_Control(pDX, IDC_COMBO_HOTELS, m_cbHotels);
    DDX_Control(pDX, IDC_COMBO_STATE_PROV, m_cbStateProv);
    DDX_Control(pDX, IDC_COMBO_CHECKIN_DAY, m_cbCheckinDay);
    DDX_Control(pDX, IDC_COMBO_CHECKIN_MONTH_YEAR, m_cbCheckinMonthYear);
    DDX_Control(pDX, IDC_COMBO_CHECKOUT_DAY, m_cbCheckoutDay);
    DDX_Control(pDX, IDC_COMBO_COUNTRY, m_cbCountry);
    DDX_Control(pDX, IDC_COMBO_SEARCH_WITHIN, m_cbSearchWithin);
    DDX_Text(pDX, IDC_EDIT_CITY, m_sCity);
    //}}AFX_DATA_MAP
    }

    BEGIN_MESSAGE_MAP(CMyParDlg, CDialog)
    //{{AFX_MSG_MAP(CMyParDlg)
    ON_WM_SYSCOMMAND()
    ON_WM_PAINT()
    ON_WM_QUERYDRAGICON()
    ON_BN_CLICKED(IDC_BUTTON1, OnStart)
    //}}AFX_MSG_MAP
    END_MESSAGE_MAP()

    /////////////////////////

    C / C++ / MFC c++ debugging 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