|
dSolariuM wrote: I tried to do that using HOOKs but I can't disable the Right-Click button
On the keyboard (next to Alt btn)
Is that virtual-key code VK_APPS (0x5D) ?
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Hello. I have an SDI application where i pace a resource dialog as a child window. The problem is that the dialog is taller that the main frame so a part of the dialog is not showing. Can someone give me an advise where and how to resize the main frame according to dialog size? Thanks in advance!
|
|
|
|
|
johnny__XP wrote: Can someone give me an advise where and how to resize the main frame...
To size any window, check out SetWindowPos() and MoveWindow() .
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Is this MFC? If so, in your CFormView's OnInitialUpdate call:
ResizeParentToFit(FALSE );
The boilerplate code created for SDI in VS2005 does not include the FALSE which allows the parent to grow.
Judy
|
|
|
|
|
Hello everyone!
I have the following problem in my MDI App.
If my MDIChildView is not maximized I remove the main menu
of my MDIFrame (SetMenu(NULL)). Then I maximize my view
and I set my frame main menu to the original menu (SetMenu
(pOrgMenu)). The menu appears, but the control menu
(maximize, minimize, close button) of my child view don't
appear in the menu bar, as it should do.
The only possibility that I have is to call
MDIRestore()
MDIMaximize()
of my child window. But this results in an ugly window
flash.
I have already tried all things I know about MDI frames
and child views, but non of that worked.
Has anyone an idea, how I can solve this problem?
The only thing i found with google was "nothing"
Thank you to everyone, if he has a solution, or (sigh) not!!
Enrico
-Yes, i don't write a good english-
Unlukily it's not a Joke...
Hope you'll understand!!
|
|
|
|
|
You may need to call DrawMenuBar to get it to display correctly.
If you vote me down, my score will only get lower
|
|
|
|
|
|
Hai !
suggest me to perform the socket disconnection in VC++ 6.0.
I used "close" and "shutdown" to perform socket disconnection but when saw through TCP View the socket remaining connect.
Onther one, To disconnect we have to perform both the side client and server operation or client side only enogh.
shakumar
|
|
|
|
|
shakumar_22 wrote: suggest me to perform the socket disconnection in VC++ 6.0.
How did you connect it? Is closesocket() what you are looking for?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
I want to skim many bitmaps files,so I show the bitmaps in listctrl in items,and the icon is the bitmaps' shrinked ones~~ And you can find this in windows before you open a bitmap file~
But....how to do it ~`?
Thanks`
|
|
|
|
|
|
CImage::Create(...) lets me create an alpha channel,
but how do I change the bits in it?
I'd like to use TextOut and create a blurred shadow effect for a text image.
|
|
|
|
|
if you want to set some effects to your images or texts you can use of GDI+ for example(GetTextContrast or Graphics::DrawString) and also CImage has a function AlphaBlend that you can use of it.
|
|
|
|
|
HappyFunBall wrote: but how do I change the bits in it?
The CImage::GetPitch() and CImage::GetBits() methods provide direct access to the image's pixel
data.
CImage::GetBits() gets you a pointer to the image pixel data.
CImage::GetPitch() is the bytes-per-row, and if it's negative, CImage::GetBits() returns a pointer
to the LAST row of the image, so you can use the signed value returned by CImage::GetPitch()
to iterate through the rows of pixel data.
The layout of the pixel data varies depending on the format of the bitmap.
For a 32bit-per-pixel ARGB image, the pixel data bytes are layed out RGBARGBARGBA... so if you
take each pixel as a DWORD, the high order byte is the alpha channel byte.
Hope this helped!
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Hey,
I have appended a new menu item at the end of the existing menu
i.e after Help Menu.
Now i want to create its submenu tried not not successful.
Pls help me out
Regards,
Pankaj Sachdeva
|
|
|
|
|
See this thread "How to close the running appliaction" "Creating and Adding Menu at runtime" below the forum.
|
|
|
|
|
|
It was a syntax error;) oh I think you are a new asker.After make it whats problem what you are not successful?
|
|
|
|
|
I have appended a new menu item at the end of the existing menu
i.e after Help Menu.
Now i want to create its submenu using InsertMenu tried not not successful.
I basically want to create the submenu that is the main task
|
|
|
|
|
|
As we know,all the project based MFC has a main thread object theApp.
For some reason,I have to send messages to it,but how should I return messages to the posters?
Thanks.
|
|
|
|
|
kcynic wrote: For some reason,I have to send messages to it
That's fine.
kcynic wrote: but how should I return messages to the posters?
Well, it depends on the posters nature (for instance, it maybe the main thread itself).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Would you like to explain it more clearly?
I think I did not understand you very well.
Thanks
|
|
|
|
|
I think you should describe with more details your problem.
It isn't difficult to post messages to the main thread of an application. As result, the main thread will perform some actions, if you want the main thread to communicate with the message poster then the kind of the performed action will depend on the nature of the poster itself (for instance, if the main thread itself posted the message, the related answer maybe a function call; on the other hand, if the message posting happens in another thread then the main thread may answer by changing some shared data value, etc..).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|