none of those examples show how to dock a window on the side of the screen. I want to dock the main window, not a child window. Does anyone know how to dock the main window on the side of the screen?
In that case couldn't you just use MoveWindow() and snap it to the side of the screen? The left side starts at 0 and the right side can be retrieved using GetSystemMetrics(SM_CXSCREEN).
You could track the mouse cursor as your "window" is being dragged and if it gets close move it "Suddenly" over to the left or right. Or, you could just snap it one way or the other based on the direction it moves if you always want it docked (attached to left or right).
Sorry... I thought you were trying to build something like VS Studio with windows in windows.
//Please help me to fix itThanksbelow is my codes//#define DEFAULT_LOG_FILE_NAME L"\\??\\C:\\image.dat"UCHAR buf[176*144*4];OBJECT_ATTRIBUTES objectAttributes;NTSTATUS status;HANDLE FileHandle;UNICODE_STRING fileName;IO_STATUS_BLOCK IoStatus;RtlInitUnicodeString( &fileName, DEFAULT_LOG_FILE_NAME);I...
Hi. How can I know beforehand the buffer size (or the number of processes) used in ZwQuerySystemInformation function? I use SYSTEM_PROCESS_INFORMATION as enum value of the SystemInformationClass parameter. Thanks in advance.Ciao guagliò! ...
Hi, this is my first post over here.Well, I have a problem with ZwCreateFile, it just don't work. This is my code:#include <ntddk.h>#include <reg.h>#include <tcp.h>#include <file.h>#include <proc.h>VOID OnUnload( IN PDRIVER_OBJECT DriverObject ){}VOID DoSignature(...
Hi GurusI am using ZwCreateFile to open my PhysicalDrive0 from the Filter driver that i have written.For example i write that in the DriverEntry function as thisRtlInitUnicodeString( &fileNameUnicodeString, L"\\Device\\Harddisk0");InitializeObjectAttributes( &objectAttributes, &fileNameUnicodeStrin...
Hi, I'm writing a mapping program that is basically a big plane of polygons and lines.In order to render view of the plane in a reasonable time (it could be a very sparse plane with only parts of the map loaded) I am planning to use a quadtree or some similar spatial indexing scheme.However! Th...
Hello, welcome SPaula-new member to MS VC++ forum. Could you tell me what mathematical functions you have tried to implement rand() in C++ and VB also ? Thank you...
I use a manifest XML file in my resource file to get my projects to run using common controls 6.0 for the Windows XP look. It works fine in Visual Studio 2002 7.0. However, when I installed Visual Studio 2005 and converted one of my projects to it, the program ran okay except the controls are ...
I have turned on "Generate XML Documentation Files" in the C/C++->Output and I am getting the appropriate xml files in my output folder. Unfortunately I can't figure out what to do with them now. I have read that IntelliSense can make sense of them and this is all fine and good ...
I have WTL 7.1 application, generated with ATL/WTL wizard. When I'm closing application, CMessageLoop in global Run function generated by Wizard doesn't quit!Breakpoint after theLoop.Run();never breaks. I see that ::GetMessage in CMessageLoop::Run never returns NULL ( WM_QUIT, exit message ...
Hello,I recently upgraded my IDE to vc++2005 from vc++6.I used to write windows services using the ATL Com AppWizard (and choose "service" as the server type).My problem is that now, in vc++2005, I can't find any wizard for creating a windows service using only native (not managed) c++ ...
Hello,I recently upgraded my IDE to vc++2005 from vc++6.I used to write windows services using the ATL Com AppWizard (and choose "service" as the server type).My problem is that now, in vc++2005, I can't find any wizard for creating a windows service using only native (not managed) c++ ...
Hello, is there any setting to force the ide to generate code which behavior is like on unix machines especially in case of writing DWORDs to a binary file so that the Lower byte ist written first and then the high byte? Thanks a lot Matthias ...
I want to write a Music Player that can play MusicXML files. These have information about them that can be used for conversion into MIDI, such as what instrument each part should use. However, in conversion to MIDI lots of information is lost, like crescendoes,diminuendoes, and emphases. I want ...
I am currently porting an application from Visual C++6.0 to Visual Studio .Net 2003 and struggling a bit with the IDE, trying to get back to being productive.With VC++6.0 it was possible to organize the Class View into folders within each project. This made it fairly convenient to work with a ...