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
K

klm

@klm
About
Posts
14
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Versions of applications (VS_VERSION_INFO)
    K klm

    Hello Tim, Thank you very much for your Help! Fiffi

    C / C++ / MFC help question

  • Versions of applications (VS_VERSION_INFO)
    K klm

    Hello friends, for what are the 4 digits (x.x.x.x) mostly used? I mean for what should i use the four digits? Sorry for this silly questions, but i really want to know that. Thank you for your help! Fiffi

    C / C++ / MFC help question

  • Trouble with dialogs/views //HELP REALLY NEEDED
    K klm

    Hello perlmunger, Thank you very very much that you try to help me! My answers of your questions: 1. I mean i don't use splitters(but i don't know what splitter is). I have a view (from CView - class), that show a dialog resoucre. With on the bottom i mean, that i create the CView first. "in x-axis" is wrong, i mean in z-axis, sorry. 2. I don't know that the dialog is the right solution (i am new in VC++), i try to explain what i want: The CView must be the "master", i mean he should create and delete all my dialogs. The dialogs should modeless, without titlebar... and the user should not see/know that the dialogs are not the view(i mean the user should mean that he see only one dialog/view). The view should create some dialogs, that all activate. When the user click a button on a dialog, the dialog should send a user message to the view. I have try that: the view create a dialog and then he create a second dialog, but i don't can operate with the second dialog (he recieve no messages) but i see the dialog. 3. a little background: I port a HMI from C and a realtime-OS to win32. This part is the process visualisation. First you see a dialog that the machine is run up. Then you see a a lot of dialogs, what the machine is doing at the moment. Sometimes i show a dialog with function-keys/buttons. The problem is that i don't show only one dialog at the same time. Do you understand my problem now?

    C / C++ / MFC help question

  • Trouble with dialogs/views //HELP REALLY NEEDED
    K klm

    Hello friends, i have a CView (fullscreen) on the bottom (in x-axis) and i would like to show a modeless CDialog (fullscreen) on the CView. And then i would like to show an another modeless CDialog (quarder-screen) on the CDialog (fullscreen). I would like to create (and delete) all dialogs in the CView, and the user should operate with all dialogs at the same time. I have try that, and my problem is this: I see the fullscreen dialog and the quarderscreen dialog (that is right), but i don't can operate with quarder-screen dialog (that is the problem). That dialog get no mouse-messages, and the buttons (on the quarderscreen dialog) don't move down when i try to click on it. Here is a code-snipet (that i use to create one of the dialogs): void CViewPMain::CreatePFkt3Zeile() { CRect DlgPFkt3Zeile, View; if (!m_DlgPFkt3Zeile) { GetClientRect(View); m_DlgPFkt3Zeile = new CDlgPFkt3Zeile; if (!::IsWindow(m_DlgPFkt3Zeile->GetSafeHwnd())) m_DlgPFkt3Zeile->Create(IDD_P_FKT_3ZEILE, this); m_DlgPFkt3Zeile->GetWindowRect(DlgPFkt3Zeile); ASSERT(m_DlgPFkt3Zeile->SetWindowPos(NULL , View.Width() - DlgPFkt3Zeile.Width() //int x , View.Height() - DlgPFkt3Zeile.Height() //int y , DlgPFkt3Zeile.Width() //int cx , DlgPFkt3Zeile.Height() //int cy , SWP_HIDEWINDOW | SWP_NOACTIVATE | SWP_NOZORDER)); m_DlgPFkt3Zeile->ShowWindow(SW_SHOW); } else { delete m_DlgPFkt3Zeile; m_DlgPFkt3Zeile = 0; } } At the SetWindowPos-function i have tryed a lot of parameters for the first and the last parameter, but ever i don't can operate with the second dialog. What make i wrong at the "create" of the dialogs? Or is "multiple dialogs" not aviable? Is there any other solution that i can do? Thank you very much for your help! PS: Sorry for my bad english.

    C / C++ / MFC help question

  • Trouble with Z-order
    K klm

    Hello friends, on the bottom (z-axis) i have a CView (Fullscreen), he create a CDialog (Fullscreen), and then he (the CView) create a CDialog (quarder-screen, bottom, y-axis). I would like to operate with the Fullscreen-dialog and the quarder-screen-dialog. I can operate with the fullscreen-dialog, but not with the quarder-screen-dialog. At the creation of the dialogs i use this: ASSERT(m_DlgPFkt3Zeile->SetWindowPos(NULL , a , b , c , d , SWP_HIDEWINDOW | SWP_NOACTIVATE | SWP_NOZORDER)); I have try all parameters of SetWindowPos, but with nothing parameter i can operate with the fullscreen-dialog and the quarder-screen-dialog. Why i don't can operate with the quarder-screen-dialog? Thank you for your help! PS: Sorry for my bad english.

    C / C++ / MFC help question

  • Trouble with DestroyWindow
    K klm

    Hello Thomas and Scott, Thank you very much for your help! I have found the error: I have a view, he create via new dialogs. When i exit the dialogs, in my OnDestroy-function of the view, i delete the dialog. Now i delete the dialogs in the destructor of my view.

    C / C++ / MFC question debugging help

  • Trouble with DestroyWindow
    K klm

    Hello, when i exit my application, i get this message from the debugger: Warning: calling DestroyWindow in CDialog::~CDialog -- OnDestroy or PostNcDestroy in derived class will not be called. What is the meaning of this Warning? Thanks for your Help!

    C / C++ / MFC question debugging help

  • Memory Leaks - HELP REALY NEEDED
    K klm

    Hello Daniel, with global member variable mean i: a variable in a class, that is accessable in each function of the class. I think the right word is: member variable. Sorry for my bad english and the "global member variable", but i come from C and i am new Visual C++, i don't have heard member varible before i started with Visual C++

    C / C++ / MFC c++ graphics debugging performance help

  • Memory Leaks - HELP REALY NEEDED
    K klm

    Hello, i have found the error, the error was that i created the dialog where the member-variable is located via new and never delete them, and then the destructor of the base class of the member-variable never called.

    C / C++ / MFC c++ graphics debugging performance help

  • Memory Leaks - HELP REALY NEEDED
    K klm

    Hello Daniel, I have a breakpoint in the destructor, but the destructor is never called. My problem/question: i have this member-variable of my own class (in the header of a dialog, the member-variable is global): CMyOwnClass m_test; When i exit my programm the debugger print me a message "Detecting Memory Leaks!" with the adress of a CBitmap object. That CBitmap object create i via new i the constructor of CMyOwnClass. And i would like to delete the in the destructor. When call windows/visual c++ the destructor of CMyOwnClass? NEVER? Thank you for your reply!

    C / C++ / MFC c++ graphics debugging performance help

  • Memory Leaks - HELP REALY NEEDED
    K klm

    Hello, i have a class for flicker-free-drawing, there i have a global pointer to CBitmap, and in the constructor i create a CBitamp-Object via new. In the destructor i would like to delete the object, but my destructor is never called. When i exit my programm the debugger print "Detecting Memory Leaks!" and then the adress of the pointer to the CBitmap object. What can i do? When called windows/Visual c++ the destructor? Please help me!

    C / C++ / MFC c++ graphics debugging performance help

  • Dialog as child on a CView-dialog // HELP REALLY NEEDED
    K klm

    What do you mean with "Use CFormView"? Can you please give me a code example.

    C / C++ / MFC question help

  • Dialog as child on a CView-dialog // HELP REALLY NEEDED
    K klm

    I don't understand what you wrote! Can you give me a little code example?

    C / C++ / MFC question help

  • Dialog as child on a CView-dialog // HELP REALLY NEEDED
    K klm

    How can i show a dialog resoucre on a CView-dialog at runtime? I would show the child dialog when a button is clicked on the CView-dialog. I would place static text controls on the child dialog, and write to these from the CView-dialog.

    C / C++ / MFC question help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups