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
G

Grrrr

@Grrrr
About
Posts
15
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • about MPEG4.
    G Grrrr

    if i have a file(maybe *.asf, *.avi) use MPEG4 or MPEG2 compress. how to play this file in my execute file~??

    C / C++ / MFC tutorial question

  • a trouble problem about CMSCOMM.OCX
    G Grrrr

    :confused::confused::confused: while i try to use atciveX control CMSCOMM.ocx with VC++6.0, i find some trouble problem. 1. must to use 'a &= 0x7F;' because that the code received have a wrong format,but it's right after i use 'a &= 0x7F;'... 2. some code can't be received sometimes. such as: 'thanks', only can receive 'anks' the code as below: void CMainFrame::OnOnCommMscomm() { VARIANT vat_input; COleSafeArray oleSA_input; LONG length, i; BYTE data[1024] = {0}; CString msg; char a = 0; INT nEvent = m_Comm.GetCommEvent(); if (nEvent == 2 ) //|| nEvent == 3 || nEvent == 6) { oleSA_input.Clear(); memset(&vat_input, 0, sizeof(VARIANT)); vat_input = m_Comm.GetInput(); m_Comm.SetInBufferCount(0); oleSA_input = vat_input; length = oleSA_input.GetOneDimSize(); for (i=0; iGetActiveDocument()); if (pDocu->m_CurrentStatus == STATUS_START) { pDocu->DoAnalyseData((LPTSTR)(LPCTSTR)m_strINComstring); } m_strINComstring.Empty(); } else if (nEvent>1000) { if (m_Comm.GetPortOpen()) { m_Comm.SetPortOpen(FALSE); } m_Comm.SetPortOpen(TRUE); } } and the setting as below: m_Comm.SetCommPort(pComSet->ComPort); m_Comm.SetInBufferSize(4096); m_Comm.SetInputMode(1); m_Comm.SetInputLen(0); m_Comm.SetOutBufferSize(4096); m_Comm.SetRThreshold(1); m_Comm.SetSThreshold(0); m_Comm.SetEOFEnable(TRUE); m_Comm.SetDTREnable(TRUE); m_Comm.SetHandshaking(0); m_Comm.SetNullDiscard(FALSE); m_Comm.SetRTSEnable(FALSE); m_Comm.SetSettings(_T("115200, n, 8, 1")); who can helpp me!! thanks!!! :confused::confused:

    C / C++ / MFC c++ help

  • about ScrollBar...
    G Grrrr

    Who can tell me how to derive a class from ScrollBar, then this class can have a image interface? If anybody can give me a example, i will feel very lucky. Thank you very much.

    C / C++ / MFC tutorial question

  • about CFileDialog...
    G Grrrr

    I want to add a preview function while use CFileDialog to open a *.jpg. Then it has done successfully. But I found the preview place down not right. what can i do??

    C / C++ / MFC question

  • How to change Button background color?
    G Grrrr

    I think 'WM_CTLCOLOR' is helpful to you.

    C / C++ / MFC tutorial question

  • CFileDialog have a preview function?
    G Grrrr

    How to use CFileDialog to have a preview function? I use this method: class CFilePrevDialog : public CFileDialog CFilePrevDialog::CFilePrevDialog(BOOL bOpenFileDialog, LPCTSTR lpszDefExt, LPCTSTR lpszFileName, DWORD dwFlags, LPCTSTR lpszFilter, CWnd* pParentWnd) : CFileDialog(bOpenFileDialog, lpszDefExt, lpszFileName, dwFlags, lpszFilter, pParentWnd) { m_ofn.lpTemplateName = MAKEINTRESOURCE(IDD_DIALOG_PREV); } ----- CString strFileDlg = "Jpg Files (*.Jpg)|*.Jpg|"; CFilePrevDialog dlg(TRUE, "Jpg", NULL, OFN_EXPLORER | OFN_FILEMUSTEXIST | OFN_ALLOWMULTISELECT, strFileDlg, NULL ); dlg.DoModal(); ----------------------- But i found what display is still the standard open filedialog... who can give a advise to use it,not too hard... Best Regards...

    C / C++ / MFC tutorial question

  • How to open the dialog 'Open Folder' not 'Open File' ??
    G Grrrr

    Yeah. I really want this function. But i found this dialog is not similar with use FileDialog(),When i use FileDialog to open a dialog to open a file.

    C / C++ / MFC tutorial question

  • How to open the dialog 'Open Folder' not 'Open File' ??
    G Grrrr

    Thanks!

    C / C++ / MFC tutorial question

  • could you tell me how to make this effect:: backgroud blur...
    G Grrrr

    Thanks.

    C / C++ / MFC tutorial

  • How to get the full path-name of 'My documents' in different OS?
    G Grrrr

    This method is the simplest method?? Just now, I have read this function in MSDN. I found it use Shell... I thought there have a simple mothod, I thought we can get the path-name direct, use a API. as 'GetSystemDirectory'. I'm sorry.perhaps i am wrong.

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

  • How to get the full path-name of 'My documents' in different OS?
    G Grrrr

    For example: 'D:\Documents and Settings\Grrrr\My Documents' In VC++6.0, which function or API or Class can do this? Thanks a lot...

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

  • how to disable a item of TabCtrl??
    G Grrrr

    we know: { TCITEM tcItem; tcItem.mask = TCIF_TEXT; tcItem.pszText = _T("as"); m_TabShow.InsertItem(0, &tcItem); tcItem.pszText = _T("df"); m_TabShow.InsertItem(1, &tcItem); } can create a TabCtrl... but how to disable a item of TabCtrl? use m_TabCtrl.SetItemState()?? thanks...

    C / C++ / MFC tutorial question

  • who can tell me how to save the DC...
    G Grrrr

    ok.Thanks. I have download a program coding with VC++6.0, It use GetDibits() function as you say. http://www.codeguru.com/bitmap/window\_to\_file.shtml Now,i will study these documents and functions at first... thanks you very much..

    C / C++ / MFC tutorial question

  • who can tell me how to save the DC...
    G Grrrr

    Thanks. Can you tell me where I can find the details about this in MSDN? And how can i compute the bitmapinfo structure about a DC? Best Regards...

    C / C++ / MFC tutorial question

  • who can tell me how to save the DC...
    G Grrrr

    i mean that i draw something on a DC(CDC). then i need to save this to a .bmp file. that is to say, how to find the BITMAPINFO structure?

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