Click here to Skip to main content
15,894,122 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Reload Icon when Explorer Crashes Pin
Jon Hulatt10-Jan-02 0:57
Jon Hulatt10-Jan-02 0:57 
GeneralRe: Reload Icon when Explorer Crashes Pin
James R. Twine10-Jan-02 4:49
James R. Twine10-Jan-02 4:49 
GeneralRe: Reload Icon when Explorer Crashes Pin
Jason Hooper10-Jan-02 7:14
Jason Hooper10-Jan-02 7:14 
GeneralRe: Reload Icon when Explorer Crashes Pin
James R. Twine10-Jan-02 8:13
James R. Twine10-Jan-02 8:13 
GeneralRe: Reload Icon when Explorer Crashes Pin
Michael Dunn10-Jan-02 7:48
sitebuilderMichael Dunn10-Jan-02 7:48 
GeneralRe: Reload Icon when Explorer Crashes Pin
James R. Twine10-Jan-02 8:20
James R. Twine10-Jan-02 8:20 
Questionhow to use scrollbar? Pin
AnonymousBabe@usa.net9-Jan-02 22:51
AnonymousBabe@usa.net9-Jan-02 22:51 
GeneralProblem with XP graphical interface Pin
limax9-Jan-02 22:30
limax9-Jan-02 22:30 
There is a simple program (WinAPI only) that creates window and in WM_CREATE handler creates one button with:
HWND hButton = CreateWindowEx(0, WC_BUTTON, _T("Push me: AaBb"),
WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON,
100, 100, 200, 20,
hwnd, NULL, g_hInstance, NULL);

It runs ok with old comctl32.dll
The problem appears when I want to switch to XP interface and create a file named "my_app_name.exe.manifest" with the following content:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<description>Your application description here.</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>

The button DOES NOT CREATE Cry | :((
GetLastError() returns "invalid window handle". What I am doing wrong?

Best Regards,
Maxim
GeneralStandard Conversions Pin
9-Jan-02 22:01
suss9-Jan-02 22:01 
GeneralRe: Standard Conversions Pin
Christian Graus9-Jan-02 23:26
protectorChristian Graus9-Jan-02 23:26 
GeneralRe: Standard Conversions Pin
Nish Nishant10-Jan-02 0:13
sitebuilderNish Nishant10-Jan-02 0:13 
GeneralRe: Standard Conversions Pin
10-Jan-02 21:32
suss10-Jan-02 21:32 
GeneralRe: Standard Conversions Pin
Christian Graus11-Jan-02 0:02
protectorChristian Graus11-Jan-02 0:02 
GeneralPostMesssage Virtual key code Pin
kasturirawat9-Jan-02 19:52
kasturirawat9-Jan-02 19:52 
GeneralRe: PostMesssage Virtual key code Pin
Rickard Andersson209-Jan-02 21:27
Rickard Andersson209-Jan-02 21:27 
GeneralRe: PostMesssage Virtual key code Pin
Nish Nishant9-Jan-02 22:04
sitebuilderNish Nishant9-Jan-02 22:04 
GeneralRe: PostMesssage Virtual key code Pin
Rickard Andersson2010-Jan-02 3:22
Rickard Andersson2010-Jan-02 3:22 
GeneralRe: PostMesssage Virtual key code Pin
kasturirawat10-Jan-02 5:53
kasturirawat10-Jan-02 5:53 
GeneralRe: PostMesssage Virtual key code Pin
Tim Deveaux10-Jan-02 6:49
Tim Deveaux10-Jan-02 6:49 
Questionhow to popup a dialog in a combobox like control? Pin
G.Richard9-Jan-02 16:20
G.Richard9-Jan-02 16:20 
AnswerRe: how to popup a dialog in a combobox like control? Pin
Nish Nishant9-Jan-02 18:08
sitebuilderNish Nishant9-Jan-02 18:08 
GeneralRe: how to popup a dialog in a combobox like control? Pin
G.Richard10-Jan-02 3:55
G.Richard10-Jan-02 3:55 
AnswerRe: how to popup a dialog in a combobox like control? Pin
Michael P Butler10-Jan-02 4:15
Michael P Butler10-Jan-02 4:15 
GeneralRe: how to popup a dialog in a combobox like control? Pin
G.Richard10-Jan-02 16:58
G.Richard10-Jan-02 16:58 
QuestionPhysical menu size ??? Pin
Christian Graus9-Jan-02 16:11
protectorChristian Graus9-Jan-02 16:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.