|
Hi!
I have created a simple SDI application with with a CommandBand on top of my application window.
I have created the CommandBand like in the tutorial Using Windows CE CommandBands in an MFC based Application
by Bruce Hearder.
The problem is that when I am opening a dialog, like the "Open File..." dialog and invoke some of the SIP elements, like the Keyboard Input and press ENTER to close the dialog, after the dialog has closed, the CommandBand will be not visible! It looks like the view does resized to the whole area and the CommandBand will be moved outside the screen. It is only when I am opening a dialog and invoke a SIP element and close the dialog (during the dialog is closing the SIP Keyboard is visible).
How can I fix that? Please help!
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
void CMainFrame::OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized)
{
CFrameWnd::OnActivate(nState, pWndOther, bMinimized);
ResizeView();
}
void CMainFrame::OnSettingChange(UINT uFlags, LPCTSTR lpszSection)
{
CFrameWnd::OnSettingChange(uFlags, lpszSection);
ResizeView();
}
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
I have written an application that sticks to a target application, I've done this by writing a dll that implements a windows hook (so it gets put into the target app's process space), then i've subclassed the windows proc. In my new windows proc i send the winodows move messages to my application.
Anyway all this works fine on windows XP, 2000, NT but i'm having problems on windows 98.
The move messages get passed fine, but when i minimize the application, it crashes. If I rerun the application it all works fine, I can't really put my finger on what the problem could be ?
Has anyone else out there had any experiance in this field ?
|
|
|
|
|
btw... I know you a few years, thx, what is the connection to 'codeguru'?
|
|
|
|
|
Anonymous wrote:
what is the connection to 'codeguru'
What do you mean with connection?
type www. then then the name co*d* g*ur* .com in the address field and press enter!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
He's probably aware that there is a connection between CP and CG, being that Chris escaped CG to start CP.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
exactly... is there a history why and what? at a birthday you usualy want (or forced) to hear boring backtime stories
Rikkard, compare articles on both sides... you will spot the "connection"
|
|
|
|
|
Anonymous wrote:
Rikkard, compare articles on both sides... you will spot the "connection
I see, I got scared when I thought you were asking for Co*eG**us address!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Chris and others helped out @ CodeGuru, which was started by Zafir. CodeGuru was eventually sold, causing it (imho) to decline into a poorly maintained state. Chris saw the opportunity to do a (much) better job and did it. Some of us who helped out @ CG continued to do the same @ CP.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
May I get the coordinates of the hot spot of the cursor? If yes then how?
Best regards,
Eugene Pustovoyt
|
|
|
|
|
::GetCursorPos( ) ?
Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
|
|
|
|
|
I was seeking the gethotspot api few months ago and never found it. it should be in the CURSORINFO struct but it isn't.
If someone know a way to get this hot spot i'm very interested in too. I need it to remove a define in my code.
Dimitri Rochette
|
|
|
|
|
Hi,
I want to create an application which gives a certain amt of the system disk space for global sharing. Is there any mechanism for that? How can I do that? Also other client machines should be able to store their files, if required, to this shared storage space and retrieve it later.
How can I restrict the shared space to a fixed amt?
Kindly help.
Regards,
|
|
|
|
|
I would like to create a class much like a CListCtrl for file selection on a Pocket PC. I don't like the file dialog that's ready-to-use.
BUT, I'd like it to have a simple interface. So my thought was that I could use protected inheritance to derive a class (CFileListCtrl) from CListCtrl, so users of my custom control wouldn't be able to mess with any CListCtrl methods that could "mess up" my custom control.
Does this seem like a reasonable approach? Do any of you know if I have to do anything other than set up my custom methods (which will then use the methods of CListCtrl), and registering the custom control class as per one of the tutorials on this site on custom controls?
I'd appreciate any input. Thanks.
- Kati
|
|
|
|
|
Hey fellas,
Right now I am pretty much stuck at a point I am modifying a device driver and well I don't really have much prior experience doing such stuff. For debugging reasons I need to write some data to a disk file. For this purpose I am using the following code :-
NTSTATUS Status;
LARGE_INTEGER ByteOffset;
IO_STATUS_BLOCK IoStatusBlock;
OBJECT_ATTRIBUTES InitializedAttributes;
UNICODE_STRING ustr;
HANDLE handle;
WCHAR fname[] = L"\\??\\D:\\Output.txt";
RtlInitUnicodeString(&ustr,fname);
InitializeObjectAttributes(&InitializedAttributes,&ustr,0, 0, NULL);
Status = ZwCreateFile(
&handle,GENERIC_WRITE|SYNCHRONIZE,
&InitializedAttributes,
&IoStatusBlock,
0,FILE_ATTRIBUTE_NORMAL,
0, FILE_OVERWRITE_IF, FILE_NON_DIRECTORY_FILE|
FILE_WRITE_THROUGH|
FILE_SYNCHRONOUS_IO_ALERT,
NULL,0);
ByteOffset.QuadPart = 0;
ZwWriteFile(handle,NULL,NULL,NULL,&IoStatusBlock,
data,512,NULL,NULL);
ZwClose(handle);
My problem is that the file is not getting created at all! Can anyone tell me what I doing wrong here?
Regards,
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
Hi Nish,
if u have win2k ddk(ntddk) ,there u can find a sample at the following directory.
root\ntddk\src\kernel\parclass\debug.c
this file debug.c has a sample on how to create a file from the kernel device driver..u can compare u r program with this and check out where u r going out of wrong..
regards,
shiv
|
|
|
|
|
I have developed my application using DirectShow for play MP3 file. I developed with DirectX 8.1 SDK.
How can I know which minimum version of DirectX runtime does my application require?
|
|
|
|
|
Is it possible to obtain the main window handle of a running application if I have the process ID?
I actually got the handle by enumerating the windows and searching by the window title. But, I feel like there must be a better way.
Thanks for any help
|
|
|
|
|
You can make the invert process using GetWindowThreadProcessId..
But for find that you need go to "Process and Thread Functions" in MSDN....
Carlos Antollini.
Pi Five[^]Creator
Sonork ID 100.10529 cantollini
|
|
|
|
|
I actually want to do just the reverse of what GetWindowThreadProcessId does. But, that gives me an idea, thanks..
|
|
|
|
|
It can't be done since it isn't unique (one process having 2 or more main windows). But if you are sure you have a unique window, the brute force method should work.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
|
hi,
if i have thread A, B to access variable C, so, i need to used CCriticalSecion to lock it, right?
however, if thead A, B access variable C in a structure and some other variables D,E,F in the same structure will only accessed by thread B. so, do i need to lock when thread B access these variables D,E,F?
my worry due to they are in same structure. but, some are public resource from multi-thread but some are private resource...
thanks,
jim
|
|
|
|
|
You only have to lock access for C, not DEF if they are truly independent. It doesn't really matter if they are all in the same structure.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
Hi,
I have been working on this program for quite a while and have been doing quite well. Somehow, however I seem to have done something wrong. Being new to this I am at a total loss trying to decipher this error message. I checked MSDN and got something that doesn't seem to help me. I'd really appreciate it if someone could please tell me what this error might mean. The program worked yesterday, and today it doesn't, with no changes by me in between.
Project4 error LNK2019: unresolved external symbol "protected: __thiscall CProject4Doc::CProject4Doc(void)" (??0CProject4Doc@@IAE@XZ) referenced in function "public: static class CObject * __stdcall CProject4Doc::CreateObject(void)" (?CreateObject@CProject4Doc@@SGPAVCObject@@XZ)
Thanks a lot
Garry
|
|
|
|