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
G

Goto_Label_

@Goto_Label_
About
Posts
13
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • SetFocus problem
    G Goto_Label_

    [CListCtrl::DeleteItem] Deletes an item from a list view control.

    CListCtrl* pmyListCtrl;

    int nCount = pmyListCtrl->GetItemCount();

    // Delete all of the items from the list view control.
    for (int i=0;i < nCount;i++)
    {
    pmyListCtrl->DeleteItem(0);
    }

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

  • "using system" generates "undeclared" error. _outp also.
    G Goto_Label_

    After the #include <...> lines, insert the following:

    short _stdcall Inp32(short PortAddress); */
    void _stdcall Out32(short PortAddress, short data);

    and link with inpout32.dll Sample code:

    #include
    #include
    #include
    short _stdcall Inp32(short PortAddress); */
    void _stdcall Out32(short PortAddress, short data);

    //link with inpout32.dll

    using namespace std;

    int main()
    {
    cout<<"Parallel Port Interfacing"<

    C / C++ / MFC help c++ question

  • SetTimer
    G Goto_Label_

    Preventing Hangs in Windows Applications About Messages and Message Queues

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

  • Creating icon in taskbar
    G Goto_Label_

    C# code here

    C / C++ / MFC question csharp c++

  • Splitter with fixed size
    G Goto_Label_

    First read Minimum size splitter then try: CSplitterWnd::SetRowInfo (horizontal) Call this member function to set a new minimum height and ideal height for a row. The row minimum value determines when the row will be too small to be fully displayed. When the framework displays the splitter window, it lays out the panes in columns and rows according to their ideal dimensions, working from the upper-left to the lower-right corner of the splitter window's client area.

    void CMyFrame::OnSize(UINT nType, int cx, int cy)
    {
    if(::IsWindow(m_wndSplitter.m_hWnd) && ::IsWindow(m_wndSplitter2.m_hWnd))
    {
    m_wndSplitter.SetRowInfo(0, cy*2/3, 10);
    m_wndSplitter.SetRowInfo(1, cy/3, 10);

    	m\_wndSplitter2.SetColumnInfo(0, cx/4, 10);
    	m\_wndSplitter2.SetColumnInfo(1, cx\*3/4, 10);
    		
    	RecalcLayout();
    }
    

    }

    CSplitterWnd::SetColumnInfo (verticle) Call this member function to set a new minimum width and ideal width for a column. The column minimum value determines when the column will be too small to be fully displayed. When the framework displays the splitter window, it lays out the panes in columns and rows according to their ideal dimensions, working from the upper-left to the lower-right corner of the splitter window's client area. Example

    void CChildFrame::OnSize(UINT nType, int cx, int cy)
    {
    CMDIChildWnd::OnSize(nType, cx, cy);

    CRect rect;
    GetWindowRect( &rect );
    if( m_bSplitterCreated ) // m_bSplitterCreated set in OnCreateClient
    {
    m_wndSplitter.SetColumnInfo(0, rect.Width()/2, 10);
    m_wndSplitter.SetColumnInfo(1, rect.Width()/2, 10);
    m_wndSplitter.RecalcLayout();
    }
    }

    CSplitterWnd::RecalcLayout Call this member function to correctly redisplay the splitter window after you have adjusted row and column sizes with the SetRowInfo and SetColumnInfo member functions. If you change row and column sizes as part of the creation process before the splitter window is visible, it is not necessary to call this member function.

    C / C++ / MFC algorithms help question

  • working with byte arrays
    G Goto_Label_

    :laugh: great fun but we didnt solve the passing of byte arrays

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

  • working with byte arrays
    G Goto_Label_

    Does this code help point you in the right direction? rcvBuffer is passed to the function processData

    #include #include void processData(char &c)
    {
    char* array = &c;
    std::cout << array << std::endl;
    }

    int main()
    {

    char\* rcvBuffer = "Hello world";
    char& c = rcvBuffer\[0\];
    processData(c);
    

    return 0;
    }

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

  • dll from win32 console.
    G Goto_Label_

    HWND is a public member of CDialog -- you can access it just like any other member of CDialog class.

    HWND CMyDialog::GetHandle()
    {
    return m_hWnd;
    }

    C / C++ / MFC c++ debugging help

  • Problem with MPR.lib/MFC90.DLL
    G Goto_Label_

    get help here

    C / C++ / MFC help sysadmin learning

  • I need socket help UDP broadcast, sendbuf
    G Goto_Label_

    Since you got no error messages.. Gee, im not sure.. could you please post more of your code? look here for hints.

    C / C++ / MFC database testing beta-testing help

  • Compiling DOS Apps With Windows 7
    G Goto_Label_

    with Windows Virtual PC here an example

    C / C++ / MFC c++ question

  • TCP Communication
    G Goto_Label_

    try this

    C / C++ / MFC tutorial

  • Suggest a fast way to do?
    G Goto_Label_

    this crc32 ?

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