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

mamtz

@mamtz
About
Posts
8
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Support for old versions of MFC
    M mamtz

    Hi I'm new to MFC programming but i also managed to write a small program which i would like to use as a standalone exe. When i tried to run the program on another computer i got an error that it does not have "MFC71.dll" but i found that it has the "MFC40.dll". My program was built using Visual Studio 2003 and i ask how can i build the project within to support the older version of MFC? Thanks a lot Mamtz

    C / C++ / MFC question csharp c++ visual-studio help

  • Taskbar Button don't have the correct status
    M mamtz

    :zzz: I forgot to mention that actually i have 2 programes. The first is always hidden and the second suppose to be sometimes hidden and sometimes not. The first one register the hot keys and is the one which hidding the second one. The first program has no maximize/minimize/system menu. The second program has these buttons and they are enabled. Does it make things different? :wtf:

    C / C++ / MFC help question

  • Taskbar Button don't have the correct status
    M mamtz

    Hi My program suppose to be sometimes hidden. when the user wants to show it, its button in the taskbar does not have the correct status. that means that if the program was first maximized (before hiding it) it is being shown maximized too but the minimize button (on the window corner) does not work and right click on its taskbar button shows only the maximize button. Here is the code when hiding the window: //saving the window placement ::GetWindowPlacement(hWnd,&sWndPlt); ::ShowWindow(hWnd,SW_HIDE); And here is the code when Showing the window: ::SetWindowPlacement(hWnd,&sWndPlt); ::ShowWindow(hWnd,SW_SHOW); ::UpdateWindow(hWnd); ::SetForegroundWindow(hWnd); ::SetActiveWindow(hWnd); Is there a way to solve this problem? Thanks a lot mamtz

    C / C++ / MFC help question

  • how to hide taskbar
    M mamtz

    Hi Kyle I didn't try it but i think it will work: 1. get the taskbar window handler: HWND wDesk=GetDesktopWindow(); HWND wTray=FindWindowEx(wDesk,NULL,"Shell_TrayWnd", ""); 2. hide it: ShowWindow(wTray,SW_HIDE); 3. show it back again: ShowWindow(wTray,SW_SHOW); Good luck Mamtz

    C / C++ / MFC tutorial question

  • How to display a transparent gif on top of the screen?
    M mamtz

    Hi I'm very fresh with MFC programming. My program works on the background, when the user clicks on a predefined hot key, the app performes the action and what I'm trying to do is to notify the user with an ok image on top of the screen for less than a second and disappear. I tried to create a dialog without window borders with a picture control within, the problems i encountered are: a. The picture control takes only bmp files which are can not be transparent. b. Whenever i set the dialog as transparent it is not become on top and start to act weird. The folowing code works fine except that the picture is not transparent. 1. When the action performed: AfxBeginThread(notify,NULL); 2. Opennig the dialog: UINT notify(LPVOID pParam){    NotifyDialog saved;    saved.DoModal();    return TRUE; } 3. The initialization of the dialog: BOOL NotifyDialog::OnInitDialog() {    CDialog::OnInitDialog();    hDlg = this->m_hWnd; //Saving dialog handler for closing it    AfxBeginThread(WaitingToHideIcon,(LPVOID)NULL);    return TRUE; } 4. Closing the dialog: UINT WaitingToHideIcon(LPVOID pParam){    Sleep(600);    EndDialog(hDlg,1);    return 0; } 5. The resource of the dialog and the picture control: IDD_NOTIFYDIALOG DIALOGEX 0, 0, 58, 71 STYLE DS_SETFONT | DS_FIXEDSYS | WS_POPUP | WS_VISIBLE | WS_SYSMENU EXSTYLE WS_EX_TOPMOST FONT 8, "MS Shell Dlg", 400, 0, 0x1 BEGIN CONTROL 143,IDC_STATIC,"Static",SS_BITMAP | SS_CENTERIMAGE,0,0, 58,71 END IDB_BITMAP1 BITMAP "res\\OkHandSign.bmp" I would love to get suggestions and improvements on how to do this Thanks a lot Mamtz

    C / C++ / MFC c++ css graphics linux tutorial

  • How to destroy a dialog after timeout
    M mamtz

    Hi I need to display a dialog showing a message to the user and distroy it after a specific timeout. How can i do this? I'm familiar with threads but in other languages so just a piece of code would be very helpful... Thanks a lot Mamtz

    C / C++ / MFC question tutorial

  • Creating standalone exe file
    M mamtz

    Hi How can i create an exe file written in C# which is not depends on the .Net Framework? I want to run this program without any installation - a standalone exe. I think that i'll get this goal using windows API programming but i'm not sure and i didn't find any good reference that teach me how to do this. Am i right? do you have any idea how can i start doing it? Thanks a lot Mamtz

    C# csharp question dotnet json tutorial

  • Hiding a window
    M mamtz

    Hi I wrote a simple program that should find a specific window and hide it. Somehow the window is actually being close (Its process is killed) and the weirdest thing is that the taskbar is also hides. Here is my code: public const int SW_HIDE = 0; [DllImport("user32.dll")] public static extern int ShowWindow(IntPtr hwnd,int nCmdShow); private void button1_Click(object sender, System.EventArgs e) {    string title=textBox1.Text; //gets the window title from a testbox.    Process[] plist =Process.GetProcesses();    foreach(Process p in plist){       if(title.IndexOf(p.MainWindowTitle)>=0){          ShowWindowAsync(p.MainWindowHandle,SW_HIDE);       }    } } Can you see the problem? what is it? or how can i hide a window without closing it? Thank a lot Mamtz

    C# 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