CListCtrl listctrl; listctrl.ModifyStyle(0, LVS_SHOWSELALWAYS);
- Category Archives MFC & WINDOWS
-
-
[MFC] CEdit 에서 Enter를 통한 줄바꿈 적용
<출처> http://mainia.tistory.com/599 CEdit 컨트롤을 사용해 한줄이 아닌 여러줄의 멀티라인 글을 쓸수 있도록 설정해야 할 때가 있다. Properties 에서 Mutility Line 으로 변경한다고 해서 설정이 끝나는 것은 아니다. 아래의 내용을 참고 하기 바란다. CEdit 박스에 Enter 키를 눌렀을때 줄…
-
[MFC] CListCtrl 을 사용한 내용 삽입
Report 형식의 CListCtrl 에 자료 넣기 1. 컬럼을 추가한다. 2. Item을 추가한다. 3. SubItem을 추가한다. 컬럼을 추가해야, 컬럼에 텍스트를 설정해 넣을 수가 있다. 컬럼 추가는 다음과 같이 한다. CListCtrl L; L.InsertColumn(0, “Control…”, LVCFMT_LEFT, …
-
[MFC] Window 창 크기 조정
sdi로 프로젝트를 생성했다고 가정하고, MainFrm.cpp의 BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)에서 cs.cx = 1024; //가로 크기 cs.cy = 768; //세로 크기 cs.style &= ~WS_THICKFRAME; //창…
-
HTML 파싱해서 원하는 정보 가져오기
출처 : http://findfun.tistory.com/tag/C# 브라우져 System.Windows.Forms 에 있는 Browser 컨트롤을 이용하여 브라우져를 만들고 원하는 정보를 얻을 수 있습니다.(옆의 이미지를 클릭하시면 크게 보실 수 있습니다.) 이 예시는 다나와 사이트의 카드/현금 동일몰 중 가장 싼 가격을 알아내는 것으로 타겟을 정했…
-
[개발/VC++] WebBrowser Control 이벤트 연결 – C++
IT/개발 2011/02/10 12:12 [개발/VC++] WebBrowser Control 이벤트 연결 – C++ WebBrowser Control IDispatch IWebBrowser2 .ReadyState READYSTATE_COMPLETE .Navigate2() .get_Document() // IDispatch -> IHTMLDo…
-
Using the WebBrowser Control from C/C++
Using the WebBrowser Control from C/C++ This section describes some of the common implementations of the WebBrowser control, including: Adding Internet browsing functionality to your applicatio…
-
std::string 다루기.. ( 찾기, 공백제거 등등)
문자열 string #include “StdAfx.h” #include “StringTest.h” #include <algorithm> //transform 사용 #include <functional> //bind1st using std::string; // 이렇게 지정해준다. StringTe…
-
MFC / C++로 특정 사이트 가져와서 분석 하기 소스
#include <stdio.h> #include <windows.h> #include <wininet.h> #include <string> #include <comdef.h> #include <mshtml.h> #import <mshtml.tlb> no_auto_exclude #p…
-
Handling HTML Element Events
http://msdn.microsoft.com/en-us/library/bb508508(v=vs.85).aspx Handling HTML Element Events 9 out of 10 rated this helpful – Rate this topic The HTMLElementEvents2 interface is an event sink int…