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
M

mfc_surfer

@mfc_surfer
About
Posts
24
Topics
15
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Installation Script [modified]
    M mfc_surfer

    Hello, I'm creating a setup project for my application. I need to ask user to specify a directory during installation, which I have to set a registry key value to that directory. I've done this for installation directory but I don't know how to ask user to specify another directory as well and how to set the registery accordingly. Any idea would be appreciated. Thanks & Regards P.S. I'm using wisual C# .NET -- modified at 8:46 Monday 22nd May, 2006

    C# csharp windows-admin tools tutorial workspace

  • Problem with Graphics & CEdit scrolling
    M mfc_surfer

    Well.....actually I'm going to draw a graph (some colored rectangles that are connected by some colored arrows) on a dialog. Since the display sould be always like a single vertical line of boxes with a scrolling feature, I though CEdit might be a good choice. Now.. I'm waiting for your suggestion for such an implementation :) Thanks a lot

    C / C++ / MFC help graphics question

  • Problem with Graphics & CEdit scrolling
    M mfc_surfer

    I have a CEdit control on a dialog box and I'm creating a dynamic rectangle on the CEdit but it doesn't scroll vertically when I put the rectangle on the bottom of the CEdit?!! I've set the multiline+ vertical scroll parameters Please help me! my code has come below: CRect rc, statusRect; GetDlgItem(IDC_GRAPH_EDIT)->GetWindowRect(rc); CWnd* pWnd = GetDlgItem(IDC_GRAPH_EDIT); ScreenToClient(rc); statusRect.top = rc.bottom - 40; statusRect.bottom = statusRect.top + 20; statusRect.left = rc.Width()/2 - 40; statusRect.right = statusRect.left + 80; m_dynamic = new CButton; m_dynamic->Create("Dynamic",WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON|BS_OWNERDRAW|BS_MULTILINE,statusRect,pWnd,2000); m_dynamic->SetFont(fontGeorgia); m_dynamic->SetColor(BLUE, LBLUE); m_dynamic->ShowWindow(SW_SHOW); I've tried the following codes but it didn't help: ((CEdit *)(GetDlgItem(IDC_GRAPH_EDIT)))->SetSel(GetWindowTextLength(),-1); or ((CEdit *)(GetDlgItem(IDC_GRAPH_EDIT)))->PostMessage(WM_VSCROLL, SB_BOTTOM); UpdateData(TRUE); or ((CEdit *)(GetDlgItem(IDC_GRAPH_EDIT)))->LineScroll(2); Any idea or suggestion will be appreciated. thanks

    C / C++ / MFC help graphics question

  • How can I Distribute N rectangles into one rectangle in most appropriate manner?
    M mfc_surfer

    Sorry! I had forgotten to include the description :) I have a frame in a dialog box and I'd like to distribute N rectangles within it in most approprate manner. I mean in a way that it look like they'ven been put around some circles not just one circle.

    C / C++ / MFC question algorithms help

  • How can I Distribute N rectangles into one rectangle in most appropriate manner?
    M mfc_surfer

    Sorry! I had forgotten to include the description :) I have a frame in a dialog box and I'd like to distribute N rectangles within it in most approprate manner. I mean in a way that it look like they've been put around some circles not just one circle.

    C / C++ / MFC question algorithms help

  • How can I Distribute N rectangles into one rectangle in most appropriate manner?
    M mfc_surfer

    Hi all, I'm having a frame in a dialog box and I'd like to distribute N rectangles within it in most approprate manner. I'm looking for an algorithm to help me calculate the positions where I should draw the N rectangles. Any suggestion would be appreciated.

    C / C++ / MFC question algorithms help

  • Draw state machine diagram
    M mfc_surfer

    Hi everybody I'm going to draw a state machine diagram using MFC classes. I'd like my program to: 0. display the diagram on a dialog 1. display this diagram by colored, 3D rectangles and arrows 2. highligh some of the arrows 3. locate the rectangles considering dialog size. Any ideas, suggestion, or links would be appreciated :) regards

    C / C++ / MFC c++

  • Urgent!!How to limit used resources?
    M mfc_surfer

    I have an SDI application, which crashes when running on win98. It uses some resources when running that are not really required but I don't know how I can limit the used resources. Actually, when I run more than one instance of this application it crashes with error message: "This program has performed an illegal operation and will be shut down." I'm debugging it and monitoring the used resources (some dialogs are displayed as in use in resource symbol dialog of VC++ while debugging) and see that it uses some unnecessary resources; It indicates that some dialogs are in use, which are not involved with part of the action I'm performing by the application. any idea will be appreciated

    C / C++ / MFC c++ help tutorial question learning

  • Core dump on WIN98
    M mfc_surfer

    Hi, I have and SDI application that works properly on win2k & xp but core dumps when running on win98. The application crashes with error message "This program has performed an illegal operation and will be shut down." I think that it's because of over using the resourses. Could you let me know how I can limit using the resoruces? Any idea would be appreciated. Regards

    C / C++ / MFC asp-net help question

  • line comparison on word basis
    M mfc_surfer

    I need and algorithm or a sample code to compare two lines on word basis and show added/deleted/changed words within lines during comparison. Any suggestion would be appreciated. Thanks

    C / C++ / MFC algorithms

  • How to know if Oracle server connectivity is Okay?
    M mfc_surfer

    I need to monitor oracle server connection through run time and close the application as soon as the connection to oracle server is lost. Any suggestion would be appreciated? Please also let me know if you have a good idea for the monitoring than creating a thread?

    C / C++ / MFC oracle sysadmin tutorial question

  • How Can I determine the Connection State of My Local System?
    M mfc_surfer

    My application connects to the internet using functions in ras32.dll I would like to know if my system is connected to the ineternet? I've used the following code but it returns false both when connected or disconnected :( Online() { BOOL bRet; DWORD dwState = 0; DWORD dwSize = sizeof(DWORD); bRet = InternetQueryOption(NULL, INTERNET_OPTION_CONNECTED_STATE, &dwState, &dwSize) && (dwState & INTERNET_STATE_CONNECTED); return bRet; }

    C / C++ / MFC question

  • Urgent! INI file sample
    M mfc_surfer

    Couly you give me a sample of creating an ini file and reading from and writing on it?

    C / C++ / MFC question

  • Urgent! CFG files
    M mfc_surfer

    Thanks for your reply :) I'm going to use that in an MFC application to configure oracle connection. I want to use windows .INI style.

    C / C++ / MFC question

  • Urgent! CFG files
    M mfc_surfer

    I'm going to use that in an MFC application to configure oracle connection. I want to use windows .INI style.

    C / C++ / MFC question

  • Urgent! CFG files
    M mfc_surfer

    How can I create a cfg file and read from or write on it? Thanks for helping!

    C / C++ / MFC question

  • How Can I pass a dynamic message from a parent class to its derived class?
    M mfc_surfer

    I've implmented OnSize() in child classes and the page itself is resized but the controls are not :confused: I'm using this code to resize the controls and it works in the parent class: BEGIN_DYNAMIC_MAP(CPropPageTabular,CPropPageItemize) DYNAMIC_MAP_ENTRY(IDC_STATIC_REP_OPTIONS, mdResize, mdResize) ... END_DYNAMIC_MAP()

    C / C++ / MFC question help

  • How to override CPropertySheet::RemovePage(int nPage)?
    M mfc_surfer

    It helped Thanks a lot :)

    C / C++ / MFC question tutorial

  • How to override CPropertySheet::RemovePage(int nPage)?
    M mfc_surfer

    Int the following code, I'm overriding CPropertySheet::RemovePage(int nPage) How can I return a pointer to cdxCDynamicPropPage? class cdxCDynamicPropSheet:public CPropertySheet {} class cdxCDynamicPropPage :public CPropertyPage{} void cdxCDynamicPropSheet::RemovePage( int nPage ) { ASSERT_VALID(this); // remove the page externally if (m_hWnd != NULL) SendMessage(PSM_REMOVEPAGE, nPage); cdxCDynamicPropPage* page = ??? page->m_pSheet = NULL; }

    C / C++ / MFC question tutorial

  • How can I override CPropertySheet::RemovePage(int nPage) in a derived class?
    M mfc_surfer

    I've derived my propertysheet classes from a class, which has implemented RemovePage as: void cdxCDynamicPropSheet::RemovePage( cdxCDynamicPropPage & rPage ) { ASSERT(rPage.m_pSheet == this); rPage.m_pSheet = NULL; } but there's no implementation for CPropertySheet::RemovePage(int nPage) I'd like to know how I can implement that.

    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