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
D

dj4400

@dj4400
About
Posts
13
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Dynamically changing a dialog template
    D dj4400

    You were right your suggestion indeed changed the resource, the visualization of the dialog was dependent on another factor. ;P Thanks

    C / C++ / MFC help learning

  • Dynamically changing a dialog template
    D dj4400

    if i change these 2 variables the app doesnt load any dialog.

    C / C++ / MFC help learning

  • Dynamically changing a dialog template
    D dj4400

    Hi all, I wish to choose a dialog template resource dynamically. The problem is that i wish to do it for the application main dialog, so its a modal dialog and i cant choose it in a Create function. :~ Thanks Shimon

    C / C++ / MFC help learning

  • SetLayeredWindowAttributes and bitmaps
    D dj4400

    Indeed, calling UpdateWindow after the 1st call fixed the problem Thanks!

    C / C++ / MFC graphics help

  • SetLayeredWindowAttributes and bitmaps
    D dj4400

    Hi all, I am using SetLayeredWindowAttributes in order to create an outlook like message. I have a special show function which moves (with SetwindowPos) the dialog and changes its opcaity while moving. :) The dialog fades in (both by movement and opacity change) around the system tray area, and after 3 seconds fades out. When i call the show function for the first time, all controls on the dialog (bitmap, static text etc.) appear as black boxes, until the fade in effect is done, then he controls appear properly. :confused: Consequent calls to the show function works properly - it shows the controls through all the fade in and fade out procedure. If i create a thread and call the show function from it then it works fine for the first call also. :confused::confused: I would appriciate it if someone can explain the differnece between calling the function from another thread or form the window thread, the drawing procedure of a dialog and may be offer a way to solve this problem without creating a new thread. Thanks Shimon

    C / C++ / MFC graphics help

  • Stuck in ShowWindow
    D dj4400

    Thanks Mark, you are right - i called the create function in the OnInitDialog and then it worked properly. :)

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

  • Stuck in ShowWindow
    D dj4400

    yes all these dialogs are created in the same thread. To be more precise i call the create function for that dialog in the ctor of the containing dialog and i call the ShowWindow(SW_SHOW) from within the OnInitDialog ,just before i return true for the OnInitDialog. :sigh: dj4400 formerly known as ddd_shocron

    modified on Thursday, January 1, 2009 3:14 AM

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

  • Stuck in ShowWindow
    D dj4400

    Hi all, I have a multithreaded application written in c++ vs6. I try to create a new dialog within an existing dialog in that application and when i call ShowWindow(SW_SHOW)for the new dialog it doesnt do anything. If i put a break point there, it seems that it stops in the call to ShowWindow and doesnt continue the execution. Can someone explain this strange behavior and suggest a way to overcome this problem? Thanks Simon.

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

  • Block windows key
    D dj4400

    Hi everyone. i wrote a little app which should check every button on the keyboard. when pressing a key the key image on the screen will disappear. In order to catch all the key strokes i use the PreTranslateMessage function When i press the windows key the start menu appears :doh: and then the PreTranslate function is called and the key disappears from the dialog. I want to block this behaviour, and only remove the button from the dialog thanks Simon.

    C / C++ / MFC

  • how to override start button?
    D dj4400

    Is there a way to catch those key strokes before Windows processes them?

    C / C++ / MFC question tutorial

  • how to override start button?
    D dj4400

    Hi all, I am writing an application that checks the correct functionality of a keyboard. I am doing so by overriding the PreTranslateMessage(MSG *pMsg). In my PreTranslateMessage i am catching all the WM_KEYDOWN and WM_SYSKEYDOWN messages and read from the wparam which key was pressed . I have 2 problems: 1. When pressing the start button (VK_LWIN), the start button is actually pressed and the start menu is opened. The menu is being opened even if i put a break point in the beginning of my PreTranslateMessage. I just want to know when the start button was pressed and i dont want it to open the start menu. :~ 2. It seems that the print screen button doesn't generate any of the 2 messages that i process in the PreTranslateMessage. what is the window message that is generated when i press the print screen key? :confused: Thanks Simon

    C / C++ / MFC question tutorial

  • Dll function calls are not called right
    D dj4400

    Hi all, thanks for your answers. The problem was that i declared a function in the interface as an int, but the implementing class declared the same function with an enum. So when calling the function from the dll (which was the implementing class) the function was not found and another function was called. ______________ |Interface | |-x(int var);| -------------- | \/ ______________ |dll class | |-x(enum var)| -------------- ;)

    C / C++ / MFC help

  • Dll function calls are not called right
    D dj4400

    Hi, I have created a dll which exports a factory function that returns an object of the type of the dll class: class CMyDll { Z(); X(); Y(); } extern "c" { __declspec(dllexport) CMyDll* Factory(); } The program that utilize the dll loads the dll calls the factory function and get the dll object. from that object i call the dll functions. MyApp() { hmodule = AfxLoadLibrary(MyDll.dll); typedef CMyDll* (*FACTORY )(void); FACTORY pFunc; pFunc = (FACTORY)GetProcAddress(hmodule,"Factory"); CMyDll *dllObj = pFunc(); dllObj->X(); dllObj->Y(); dllObj->Z(); } But there is a problem , the functions are not called right, if i call functions X,Y and Z, it calls functions Z,Y and X in a certain order which i couldn't specify. If someone spotted the source of the error please let me know Thanks :confused: Simon

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